You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2018/05/22 04:03:27 UTC

[openmeetings] branch 4.0.x updated: [OPENMEETINGS-1864] privacy link is added to the profile page

This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch 4.0.x
in repository https://gitbox.apache.org/repos/asf/openmeetings.git


The following commit(s) were added to refs/heads/4.0.x by this push:
     new 9805eb4  [OPENMEETINGS-1864] privacy link is added to the profile page
9805eb4 is described below

commit 9805eb4fad7362fa3b52fd4cb385a57af7e11ea6
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Tue May 22 11:03:16 2018 +0700

    [OPENMEETINGS-1864] privacy link is added to the profile page
---
 .../java/org/apache/openmeetings/web/user/profile/ProfilePanel.html    | 3 +++
 .../java/org/apache/openmeetings/web/user/profile/ProfilePanel.java    | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/profile/ProfilePanel.html b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/profile/ProfilePanel.html
index e215f2a..3f38cec 100644
--- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/profile/ProfilePanel.html
+++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/profile/ProfilePanel.html
@@ -22,5 +22,8 @@
 <wicket:panel>
 	<form wicket:id="form" class="adminForm"/>
 	<div wicket:id="changePasswd"></div>
+	<div style="text-align: center; padding-top: 10px;">
+		<a wicket:id="link" target="_blank"><wicket:message key="register.privacy.statement"/></a>
+	</div>
 </wicket:panel>
 </html>
diff --git a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/profile/ProfilePanel.java b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/profile/ProfilePanel.java
index 20ba1eb..f834da5 100644
--- a/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/profile/ProfilePanel.java
+++ b/openmeetings-web/src/main/java/org/apache/openmeetings/web/user/profile/ProfilePanel.java
@@ -19,6 +19,8 @@
 package org.apache.openmeetings.web.user.profile;
 
 import org.apache.openmeetings.web.common.UserBasePanel;
+import org.apache.openmeetings.web.pages.PrivacyPage;
+import org.apache.wicket.markup.html.link.BookmarkablePageLink;
 
 public class ProfilePanel extends UserBasePanel {
 	private static final long serialVersionUID = 1L;
@@ -29,5 +31,6 @@ public class ProfilePanel extends UserBasePanel {
 
 		final ChangePasswordDialog chPwdDlg = new ChangePasswordDialog("changePasswd");
 		add(chPwdDlg, new ProfileForm("form", chPwdDlg));
+		add(new BookmarkablePageLink<>("link", PrivacyPage.class));
 	}
 }

-- 
To stop receiving notification emails like this one, please contact
solomax@apache.org.