Update of
/var/cvs/contributions/CMSContainer_Modules/community/src/webapp/editors/community
In directory
james.mmbase.org:/tmp/cvs-serv8944/community/src/webapp/editors/community
Modified Files:
grouplist_addusertogroup.jspf grouplist_table.jspf
Log Message:
CMSC-1284(Add a judge, if the amount of the users in one group is large than
10, just show the first 10 users, otherwise show all the users.)
See also:
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Modules/community/src/webapp/editors/community
See also: http://www.mmbase.org/jira/browse/CMSC-1284
Index: grouplist_addusertogroup.jspf
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Modules/community/src/webapp/editors/community/grouplist_addusertogroup.jspf,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- grouplist_addusertogroup.jspf 8 Sep 2008 08:31:25 -0000 1.3
+++ grouplist_addusertogroup.jspf 11 Feb 2009 09:52:09 -0000 1.4
@@ -7,6 +7,11 @@
${group.groupName}
</edit:ui-tcolumn>
<edit:ui-tcolumn titlekey="community.search.users">
+ <c:if test="${group.userAmount <= 10}">
${group.users}
+ </c:if>
+ <c:if test="${group.userAmount > 10}">
+ <fmt:message
key="community.preference.result.users"><fmt:param>${group.users}</fmt:param><fmt:param>${group.userAmount
- 10}</fmt:param></fmt:message>
+ </c:if>
</edit:ui-tcolumn>
</edit:ui-table>
\ No newline at end of file
Index: grouplist_table.jspf
===================================================================
RCS file:
/var/cvs/contributions/CMSContainer_Modules/community/src/webapp/editors/community/grouplist_table.jspf,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- grouplist_table.jspf 18 Sep 2008 06:29:21 -0000 1.3
+++ grouplist_table.jspf 11 Feb 2009 09:52:09 -0000 1.4
@@ -12,6 +12,11 @@
<a href="${userActionUrl}">${result.groupName}</a>
</edit:ui-tcolumn>
<edit:ui-tcolumn titlekey="community.search.users" >
- ${result.users }
+ <c:if test="${result.userAmount <= 10}">
+ ${result.users}
+ </c:if>
+ <c:if test="${result.userAmount > 10}">
+ <fmt:message
key="community.preference.result.users"><fmt:param>${result.users}</fmt:param><fmt:param>${result.userAmount
- 10}</fmt:param></fmt:message>
+ </c:if>
</edit:ui-tcolumn>
</edit:ui-table>
\ No newline at end of file
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs