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:
parent
7dafc9f479
commit
bb13423e51
|
@ -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() %>">
|
||||
|
|
Loading…
Reference in New Issue