Author: tuancn
Date: 2010-02-03 05:18:09 -0500 (Wed, 03 Feb 2010)
New Revision: 1518
Modified:
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/navigation/webui/component/UIGroupNavigationManagement.gtmpl
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/navigation/webui/component/UISiteManagement.gtmpl
Log:
GTNPORTAL-500: "Site" and "Group" links for non-privilege people show
forbidden buttons
Modified:
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/navigation/webui/component/UIGroupNavigationManagement.gtmpl
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/navigation/webui/component/UIGroupNavigationManagement.gtmpl 2010-02-03
09:50:19 UTC (rev 1517)
+++
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/navigation/webui/component/UIGroupNavigationManagement.gtmpl 2010-02-03
10:18:09 UTC (rev 1518)
@@ -5,7 +5,8 @@
import org.exoplatform.webui.core.UIPopupWindow;
uicomponent.loadNavigations();
- uicomponent.renderChild(UIVirtualList.class); %>
+ uicomponent.renderChild(UIVirtualList.class);
+ if(uicomponent.loadNavigations().size() > 0){ %>
<div class="UIAction">
<table class="ActionContainer">
@@ -24,6 +25,9 @@
</tr>
</table>
</div>
+ <%
+ }
+ %>
<% uicomponent.renderChild(UIPopupWindow.class); %>
</div>
Modified:
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/navigation/webui/component/UISiteManagement.gtmpl
===================================================================
---
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/navigation/webui/component/UISiteManagement.gtmpl 2010-02-03
09:50:19 UTC (rev 1517)
+++
portal/trunk/portlet/exoadmin/src/main/webapp/groovy/navigation/webui/component/UISiteManagement.gtmpl 2010-02-03
10:18:09 UTC (rev 1518)
@@ -30,7 +30,9 @@
<%
}
%>
-
+ <%
+ if(uicomponent.getPortalConfigs().size() > 0){
+ %>
<div class="UIAction">
<table class="ActionContainer">
<tr>
@@ -48,7 +50,9 @@
</tr>
</table>
</div>
-
+ <%
+ }
+ %>
<%uicomponent.renderChildren();%>
</div>