From 9f918e49fd10e3289d87a21ecc4dd02c94152067 Mon Sep 17 00:00:00 2001 From: Massimiliano Assante Date: Mon, 25 Jul 2016 20:48:11 +0000 Subject: [PATCH] removed data-e-einfrastructure gateway from my sites list git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portal/liferay62-plugins/social-dockbar-hook@130801 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../html/taglib/ui/my_sites/page.jsp | 30 +++++++++++-------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/src/main/webapp/custom_jsps/html/taglib/ui/my_sites/page.jsp b/src/main/webapp/custom_jsps/html/taglib/ui/my_sites/page.jsp index bc88287..6cabd23 100644 --- a/src/main/webapp/custom_jsps/html/taglib/ui/my_sites/page.jsp +++ b/src/main/webapp/custom_jsps/html/taglib/ui/my_sites/page.jsp @@ -46,10 +46,14 @@ } if (! isAdmin) { - for (Group group : user.getMySiteGroups(classNames, includeControlPanel, max)) { - if (group.getChildren(true).isEmpty()) { - mySiteGroups.add(group); + try { + for (Group group : user.getMySiteGroups(classNames, includeControlPanel, max)) { + if (group.getChildren(true).isEmpty() && (group.getFriendlyURL().compareTo("/data-e-infrastructure-gateway") != 0) ) { + mySiteGroups.add(group); + } } + } catch (SystemException e1) { + e1.printStackTrace(); } } %> @@ -215,8 +219,7 @@ || showPrivateSiteStaging) { iconCssClass = "icon-eye-open"; } - %> <%@ include - file="/html/taglib/ui/my_sites/page_site_name.jspf"%> + %> <%@ include file="/html/taglib/ui/my_sites/page_site_name.jspf"%> <%@ include - file="/html/taglib/ui/my_sites/page_site_name.jspf"%> + %> <%@ include file="/html/taglib/ui/my_sites/page_site_name.jspf"%> ">

<%=escapedSiteName%> + .getURLControlPanel()%>"> + <%=escapedSiteName%>

@@ -458,8 +462,8 @@ .getPublicLayoutsPageCount() > 0)%>"> onclick="Liferay.Util.forcePost(this); return false;"
- role="menuitem"> (<%=mySiteGroup + role="menuitem"> + (<%=mySiteGroup .getPublicLayoutsPageCount()%>) 0%>"> onclick="Liferay.Util.forcePost(this); return false;" - role="menuitem"> (<%=mySiteGroup + role="menuitem"> + (<%=mySiteGroup .getPrivateLayoutsPageCount()%>)