Author: tam_nguyen
Date: 2009-11-06 03:02:38 -0500 (Fri, 06 Nov 2009)
New Revision: 511
Modified:
portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/navigation/UIAddGroupNavigation.gtmpl
portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/navigation/UIGroupGrid.gtmpl
Log:
GTNPORTAL-82 Should show message when user does not have the right to add navigation (
Mary/Demo)
Modified:
portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/navigation/UIAddGroupNavigation.gtmpl
===================================================================
---
portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/navigation/UIAddGroupNavigation.gtmpl 2009-11-06
05:15:57 UTC (rev 510)
+++
portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/navigation/UIAddGroupNavigation.gtmpl 2009-11-06
08:02:38 UTC (rev 511)
@@ -6,9 +6,7 @@
listGroupNames = uicomponent.loadGroups();
uicomponent.renderChild(UIVirtualList.class); %>
- <% if (listGroupNames == null){ %>
- <%=_ctx.appRes("UIAddGroupNavigation.Label.NoPermission")%>
- <% } %>
+
<div class="UIAction">
<table class="ActionContainer">
<tr>
Modified:
portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/navigation/UIGroupGrid.gtmpl
===================================================================
---
portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/navigation/UIGroupGrid.gtmpl 2009-11-06
05:15:57 UTC (rev 510)
+++
portal/trunk/web/portal/src/main/webapp/groovy/portal/webui/navigation/UIGroupGrid.gtmpl 2009-11-06
08:02:38 UTC (rev 511)
@@ -6,7 +6,10 @@
def listGroupNames = (List<String>)uicomponent.getBeans();
def parent = uicomponent.getParent();
%>
-<div id="$uicomponent.id" class="FeedBox">
+<div id="$uicomponent.id" class="FeedBox">
+ <% if (listGroupNames.size() == 0){ %>
+ <%=_ctx.appRes("UIAddGroupNavigation.Label.NoPermission")%>
+ <% } %>
<%
for(groupName in listGroupNames) {
addLink = parent.event("AddNavigation",
java.net.URLEncoder.encode(groupName));
Show replies by date