added patch for myProfileURL

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/liferay62-plugins/social-dockbar-hook@128619 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2016-05-16 14:07:45 +00:00
parent 7dafc9f479
commit bb13423e51
1 changed files with 14 additions and 1 deletions

View File

@ -75,7 +75,6 @@
<%
List<Group> mySiteGroups = user.getMySiteGroups(new String[] {User.class.getName()}, false, QueryUtil.ALL_POS);
for (Group mySiteGroup : mySiteGroups) {
%>
@ -130,8 +129,22 @@
myAccountURL = HttpUtil.setParameter(myAccountURL, "controlPanelCategory", PortletCategoryKeys.MY);
%>
<%//Patch for myProfile URL
String currentVirtualHost = request.getServerName();
String groupName = currentVirtualHost.split("\\.")[0];
String myProfileURL = GCubePortalConstants.PREFIX_GROUP_URL + "/" + groupName + "/profile";
%>
<li class="my-sites-menu private-site">
<a href="<%= myProfileURL %>" role="menuitem">
<span class="site-name"><liferay-ui:message key="my-profile" /></span>
<span class="badge site-type"><liferay-ui:message key="private" /></span>
</a>
</li>
<%//End Patch for myProfile URL %>
<aui:nav-item href="<%= myAccountURL %>" iconCssClass="icon-user" label="my-account" title="my-account" useDialog="<%= PropsValues.DOCKBAR_ADMINISTRATIVE_LINKS_SHOW_IN_POP_UP %>" />
</c:if>
<c:if test="<%= themeDisplay.isShowSignOutIcon() %>">