dnet40/modules/uoa-web-jsp/src/default/community/allCommunitiesMenu.jsp @ 40613
1 |
<%@ taglib prefix="s" uri="/struts-tags"%> |
---|---|
2 |
<%@ page contentType="text/html; charset=UTF-8"%> |
3 |
|
4 |
|
5 |
<div id="smallAlphaBar"> |
6 |
<s:iterator value="%{{'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'}}" var="letter"> |
7 |
<s:if test="%{(initialLetter != null) && initialLetter.equals(#letter)}"> |
8 |
<span class="alphaLetterSmallSelected"> |
9 |
<s:property/>
|
10 |
</span>
|
11 |
</s:if>
|
12 |
<s:else>
|
13 |
<span class="alphaLetterSmall"> |
14 |
<a href="<s:if test="%{(community != null) && @java.lang.Character@valueOf(@java.lang.Character@toUpperCase(community.name.charAt(0))).equals(#letter)}"><s:property value="#action" />?communityId=<s:property value="community.resourceId" />&initialLetter=<s:property /></s:if><s:else>ViewAllCommunities.action?initialLetter=<s:property /></s:else>"> |
15 |
<s:property/>
|
16 |
</a>
|
17 |
</span>
|
18 |
</s:else>
|
19 |
</s:iterator>
|
20 |
<s:if test="initialLetter == null"> |
21 |
<span class="alphaLetterSmallSelected">ALL</span> |
22 |
</s:if>
|
23 |
<s:else>
|
24 |
<span class="alphaLetterSmall"> |
25 |
<a href="<s:if test="%{communityId == null}">ViewAllCommunities.action</s:if><s:else><s:property value="#action" />?communityId=<s:property value="communityId" /></s:else>">ALL</a> |
26 |
</span>
|
27 |
</s:else>
|
28 |
</div>
|
29 |
<s:if test="%{(initialLetter != null) && (communities.size() == 0)}"> |
30 |
<div class="communityField"> |
31 |
<span class="communityFieldComments">No communities under <b><s:property value="initialLetter" /></b>.</span> |
32 |
</div>
|
33 |
</s:if>
|
34 |
<s:iterator value="communities"> |
35 |
<div class="mydrivermenuitem"> |
36 |
<s:if test="%{(community != null) && (resourceId.equals(community.resourceId))}"> |
37 |
<span class="selected"> |
38 |
<s:property value="name" /> |
39 |
</span>
|
40 |
</s:if>
|
41 |
<s:else>
|
42 |
<a href="<s:property value="#action" />?communityId=<s:property value="resourceId" /><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>"> |
43 |
<s:property value="name" /> |
44 |
</a>
|
45 |
</s:else>
|
46 |
</div>
|
47 |
</s:iterator>
|
48 |
<p> </p> |
49 |
|