1
|
<%@ taglib prefix="s" uri="/struts-tags"%>
|
2
|
<%@ page contentType="text/html; charset=UTF-8"%>
|
3
|
|
4
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
5
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
6
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
|
8
|
<head>
|
9
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
10
|
<title>DRIVER Communities</title>
|
11
|
|
12
|
<link href='<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/assets/<s:property value="#application['webInterfaceLayoutManager'].cssFileName" />' rel="stylesheet" type="text/css" />
|
13
|
<link href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/assets/SimpleTabs.css" rel="stylesheet" type="text/css" />
|
14
|
<link rel="shortcut icon" href="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/favicon.ico" />
|
15
|
|
16
|
<!-- MB - ADD mootools here: new version -->
|
17
|
<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/mootools-1.2.3-core.js"></script>
|
18
|
<script type="text/javascript" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/js/mootools-1.2.3.1-more.js"></script>
|
19
|
<script type="text/javascript">
|
20
|
function deleteCommunity() {
|
21
|
return confirm('Are you sure you want to delete communiy <s:property value="community.name" />?');
|
22
|
}
|
23
|
</script>
|
24
|
|
25
|
</head>
|
26
|
|
27
|
<body>
|
28
|
<div id="center">
|
29
|
<div id="wrapper">
|
30
|
<div class="wrapper_shadowleft">
|
31
|
<div class="wrapper_shadowright">
|
32
|
<div id="container">
|
33
|
<jsp:include page="/pages/banner.jsp" />
|
34
|
<jsp:include page="/pages/menu.jsp" />
|
35
|
|
36
|
<div id="leftcolumn">
|
37
|
<b class="curved_top">
|
38
|
<b class="curved_t1"></b>
|
39
|
<b class="curved_t2"></b>
|
40
|
<b class="curved_t3"></b>
|
41
|
<b class="curved_t4"></b>
|
42
|
</b>
|
43
|
<div class="curved_container clearfix">
|
44
|
<s:if test="%{displayMyDriverMenu}">
|
45
|
<jsp:include page="/pages/community/myCommunitiesMenu.jsp" />
|
46
|
</s:if>
|
47
|
<s:else>
|
48
|
<div class="featured_top leftcolumn_top">Communities</div>
|
49
|
<s:set name="action" value="%{'ViewCommunity.action'}"/>
|
50
|
<jsp:include page="/pages/community/allCommunitiesMenu.jsp" />
|
51
|
</s:else>
|
52
|
</div>
|
53
|
<b class="curved_bottom">
|
54
|
<b class="curved_b4"></b>
|
55
|
<b class="curved_b3"></b>
|
56
|
<b class="curved_b2"></b>
|
57
|
<b class="curved_b1"></b>
|
58
|
</b>
|
59
|
</div>
|
60
|
<div id="maincolumn2">
|
61
|
<div id="communityPage">
|
62
|
<b class="curved_top">
|
63
|
<b class="curved_t1"></b>
|
64
|
<b class="curved_t2"></b>
|
65
|
<b class="curved_t3"></b>
|
66
|
<b class="curved_t4"></b>
|
67
|
</b>
|
68
|
<div class="curved_container clearfix">
|
69
|
<div class="featured_top communityPage_top">
|
70
|
<div class="right ">
|
71
|
<s:if test="%{displayJoin}">
|
72
|
<a class="ovalbutton " href="JoinCommunity.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">
|
73
|
<span>Join</span>
|
74
|
</a>
|
75
|
</s:if>
|
76
|
<s:if test="%{displayLeave}">
|
77
|
<a class="ovalbutton " href="LeaveCommunity.action?communityId=<s:property value="communityId" />
|
78
|
<s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">
|
79
|
<span>Leave</span>
|
80
|
</a>
|
81
|
</s:if>
|
82
|
<s:if test="%{displayEdit}">
|
83
|
<a class="ovalbutton " href="EditCommunity.action?communityId=<s:property value="communityId" />
|
84
|
<s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">
|
85
|
<span>Edit</span>
|
86
|
</a>
|
87
|
</s:if>
|
88
|
<s:if test="%{displayDelete}">
|
89
|
<a class="ovalbutton " onClick="return deleteCommunity();" href="DeleteCommunity.action?communityId=<s:property value="communityId" />
|
90
|
<s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">
|
91
|
<span>Delete</span>
|
92
|
</a>
|
93
|
</s:if>
|
94
|
</div>
|
95
|
|
96
|
<img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/communities.png" alt="DRIVER Communities" width="16" height="16" absmiddle="absmiddle" />
|
97
|
|
98
|
<a href="ViewCommunity.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">
|
99
|
<s:property value="community.name" />
|
100
|
</a>
|
101
|
</div>
|
102
|
<s:set name="selectedTab" value="%{0}"/>
|
103
|
<jsp:include page="/pages/community/tabsMenu.jsp" />
|
104
|
<div class="tab-wrapper clearfix ">
|
105
|
<div class="mydriveritem col1">
|
106
|
<div class="communityField">
|
107
|
<span class="communityFieldNm">Description:</span>
|
108
|
<s:property value="community.description" />
|
109
|
</div>
|
110
|
<div class="communityField">
|
111
|
<span class="communityFieldNm">Owner:</span>
|
112
|
<s:if test="%{((owner.firstname == null) || owner.firstname.isEmpty()) && ((owner.lastname == null) || owner.lastname.isEmpty())}">
|
113
|
<s:property value="owner.email.split('@')[0]" />@...
|
114
|
</s:if>
|
115
|
<s:else>
|
116
|
<s:property value="owner.firstname" />
|
117
|
<s:property value="owner.lastname" />
|
118
|
</s:else>
|
119
|
</div>
|
120
|
<div class="communityField">
|
121
|
<span class="communityFieldNm">
|
122
|
Managers (<s:property value="managers.size()" />):
|
123
|
</span>
|
124
|
<s:iterator value="managers" status="managersStatus">
|
125
|
<s:if test="%{((firstname == null) || firstname.isEmpty()) && ((lastname == null) || lastname.isEmpty())}"><s:property value="email.split('@')[0]" />@...</s:if><s:else><s:property value="firstname" /> <s:property value="lastname" /></s:else><s:if test="!#managersStatus.last">, </s:if>
|
126
|
</s:iterator>
|
127
|
</div>
|
128
|
<div class="communityField">
|
129
|
<span class="communityFieldNm">
|
130
|
Members (<s:property value="members.size()" />):
|
131
|
</span>
|
132
|
<a class="viewMore" href="ViewCommunityMembers.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">View list</a>
|
133
|
</div>
|
134
|
<div class="communityField">
|
135
|
<span class="communityFieldNm">
|
136
|
Collections (<s:property value="collections.size()" />):
|
137
|
</span>
|
138
|
<s:if test="%{collections.size() > 0}">
|
139
|
<s:iterator value="collections" status="collectionsStatus">
|
140
|
<a href="AllDRIVERCollections.action?collectionID=<s:property value="resourceId" />"><s:property value="name" /></a><s:if test="!#collectionsStatus.last">, </s:if>
|
141
|
</s:iterator>
|
142
|
|
143
|
<a class="viewMore" href="ViewCommunityCollections.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">View list</a>
|
144
|
</s:if>
|
145
|
<s:else>
|
146
|
None
|
147
|
</s:else>
|
148
|
<s:if test="%{displayAddCollection}">
|
149
|
|
150
|
<a class="ovalbutton" href="AddCommunityCollection.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">
|
151
|
<span>Add a collection</span>
|
152
|
</a>
|
153
|
</s:if>
|
154
|
</div>
|
155
|
</div>
|
156
|
<div class="mydriveritem col2">
|
157
|
<div class="content equalizeT">
|
158
|
<h2>
|
159
|
<img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/userrecommend.png" height="16" />
|
160
|
<a href="ViewCommunityAnnouncements.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu= true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">Announcements</a>
|
161
|
</h2>
|
162
|
<s:if test="recommendations.size() == 0">
|
163
|
<div class="communityField">
|
164
|
<span class="communityFieldComments">No announcements.</span>
|
165
|
</div>
|
166
|
</s:if>
|
167
|
<s:else>
|
168
|
<s:iterator value="recommendations" status="recommendationsStatus">
|
169
|
<s:if test="#recommendationsStatus.index < 3">
|
170
|
<div class="communityField">
|
171
|
<s:property value="dateFormat.format(generationDate)" />:
|
172
|
<a href="ViewCommunityAnnouncements.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>#<s:property value="resourceId" />">
|
173
|
<s:property value="title" />
|
174
|
</a>
|
175
|
</div>
|
176
|
</s:if>
|
177
|
</s:iterator>
|
178
|
<div class="communityField">
|
179
|
<a href="ViewCommunityAnnouncements.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">View all <img align="absbottom" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/options_right.png"/></a>
|
180
|
</div>
|
181
|
</s:else>
|
182
|
<div class="communityField">
|
183
|
<s:if test="%{displayAddAnnouncement}">
|
184
|
<a class="ovalbutton" href="AddCommunityAnnouncement.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">
|
185
|
<span>New announcement</span>
|
186
|
</a>
|
187
|
</s:if>
|
188
|
</div>
|
189
|
</div>
|
190
|
</div>
|
191
|
<!-- MB - user "clearright" for the box on the right column -->
|
192
|
<div class="mydriveritem col2">
|
193
|
<div class="content equalizeT">
|
194
|
<h2>
|
195
|
<img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/bookmarks.gif" height="16" />
|
196
|
<a href="ViewCommunityAuthoritativeDocuments.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu= true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">Reading list</a>
|
197
|
</h2>
|
198
|
<s:if test="webAuthoritativeDocuments.size() == 0">
|
199
|
<div class="communityField">
|
200
|
<span class="communityFieldComments">No documents in the reading list.</span>
|
201
|
</div>
|
202
|
</s:if>
|
203
|
<s:else>
|
204
|
<div class="communityField">
|
205
|
<span class="communityFieldComments">
|
206
|
This reading list contains
|
207
|
<s:property value="authoritativeDocuments.size()" />
|
208
|
item(s)
|
209
|
</span>
|
210
|
</div>
|
211
|
<s:iterator value="webAuthoritativeDocuments" status="authoritativeDocumentsStatus" var="document">
|
212
|
<s:if test="%{#authoritativeDocumentsStatus.index < 3}">
|
213
|
<div class="communityField">
|
214
|
<jsp:include page="/pages/search/document.jsp" />
|
215
|
</div>
|
216
|
</s:if>
|
217
|
<s:if test="%{#authoritativeDocumentsStatus.index == 3}">
|
218
|
<div class="communityField">...</div>
|
219
|
<div class="communityField">
|
220
|
<a href="ViewCommunityAuthoritativeDocuments.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">View all <img align="absbottom" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/options_right.png"/></a>
|
221
|
</div>
|
222
|
</s:if>
|
223
|
</s:iterator>
|
224
|
|
225
|
</s:else>
|
226
|
<s:if test="%{displayAddAuthoritativeDocument}">
|
227
|
<div class="communityField">
|
228
|
<span class="communityFieldComments">Use the Dropbox to add items into the reading list.</span>
|
229
|
</div>
|
230
|
</s:if>
|
231
|
</div>
|
232
|
</div>
|
233
|
<div class="mydriveritem col2">
|
234
|
<div class="content equalizeB">
|
235
|
<h2>
|
236
|
<img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/forum.gif" height="16" />
|
237
|
<a href="ViewForumThreads.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu= true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">Forum</a>
|
238
|
</h2>
|
239
|
<s:if test="threads.size() == 0">
|
240
|
<div class="communityField">
|
241
|
<span class="communityFieldComments">This community has no open discussions.</span>
|
242
|
</div>
|
243
|
</s:if>
|
244
|
<s:else>
|
245
|
<s:iterator value="threads" status="threadsStatus">
|
246
|
<s:if test="#threadsStatus.index < 3">
|
247
|
<div class="communityField">
|
248
|
<a href="ViewForumThread.action?communityId=<s:property value="communityId" />&threadId=<s:property value="threadId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">
|
249
|
<s:property value="topic" />
|
250
|
</a><!--NMI this is wroing
|
251
|
<a href="ViewForumThread.action?threadId=<s:property value="threadId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">
|
252
|
<s:property value="topic" />
|
253
|
</a>
|
254
|
-->
|
255
|
<br />
|
256
|
<s:property value="dateFormat.format(creationDate)" />
|
257
|
|
|
258
|
<s:property value="threadOwners.get(threadId).firstname" />
|
259
|
<s:property value="threadOwners.get(threadId).lastname" />
|
260
|
|
|
261
|
<s:property value="posts.size()" />
|
262
|
post(s)
|
263
|
</div>
|
264
|
</s:if>
|
265
|
</s:iterator>
|
266
|
|
267
|
<div class="communityField">
|
268
|
<a href="ViewForumThreads.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">View all <img align="absbottom" src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/options_right.png"/></a>
|
269
|
</div>
|
270
|
</s:else>
|
271
|
<div class="communityField">
|
272
|
<s:if test="%{displayAddForumThread}">
|
273
|
<a class="ovalbutton" href="OpenForumThread.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">
|
274
|
<span>Open new discussion</span>
|
275
|
</a>
|
276
|
</s:if>
|
277
|
</div>
|
278
|
</div>
|
279
|
</div>
|
280
|
<div class="mydriveritem col2 ">
|
281
|
<div class="content equalizeB">
|
282
|
<h2>
|
283
|
<img src="<s:property value="#application[@gr.uoa.di.driver.web.listeners.DriverContextListener@APACHE_URL]"/>/static-content/images/icons/rating.png" height="16" />
|
284
|
<a href="ViewCommunityPopularDocuments.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu= true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">Popular Documents</a>
|
285
|
</h2>
|
286
|
<s:if test="popularDocuments.size() == 0">
|
287
|
<div class="communityField">
|
288
|
<span class="communityFieldComments">This feature will be enabled soon.</span>
|
289
|
</div>
|
290
|
</s:if>
|
291
|
<s:else>
|
292
|
<s:iterator value="popularDocuments" status="popularDocumentsStatus">
|
293
|
<s:if test="%{#popularDocumentsStatus.index < 3}">
|
294
|
<s:set name="document" value="getKey()" />
|
295
|
<jsp:include page="/pages/search/document.jsp" />
|
296
|
<br />
|
297
|
<s:property value="getValue()" />
|
298
|
</s:if>
|
299
|
</s:iterator>
|
300
|
<div class="communityField"> </div>
|
301
|
<div class="communityField">
|
302
|
<a href="ViewCommunityPopularDocuments.action?communityId=<s:property value="communityId" /><s:if test="%{displayMyDriverMenu}">&displayMyDriverMenu=true</s:if><s:if test="%{initialLetter != null}">&initialLetter=<s:property value="initialLetter" /></s:if>">View all popular documents...</a>
|
303
|
</div>
|
304
|
</s:else>
|
305
|
</div>
|
306
|
</div>
|
307
|
<!-- MB - Make all "equalize" boxes equal height -->
|
308
|
<script type="text/javascript">
|
309
|
window.addEvent('domready', function() {
|
310
|
var columns = $$('.equalizeT');
|
311
|
var max_height = 0;
|
312
|
columns.each(function(item) {
|
313
|
max_height = Math.max(max_height, item.getSize().y);
|
314
|
});
|
315
|
columns.setStyle('height', max_height);
|
316
|
var columns = $$('.equalizeB');
|
317
|
var max_height = 0;
|
318
|
columns.each(function(item) {
|
319
|
max_height = Math.max(max_height, item.getSize().y);
|
320
|
});
|
321
|
columns.setStyle('height', max_height);
|
322
|
});
|
323
|
</script>
|
324
|
</div>
|
325
|
</div>
|
326
|
<b class="curved_bottom">
|
327
|
<b class="curved_b4"></b>
|
328
|
<b class="curved_b3"></b>
|
329
|
<b class="curved_b2"></b>
|
330
|
<b class="curved_b1"></b>
|
331
|
</b>
|
332
|
</div>
|
333
|
</div>
|
334
|
<div id="footer">
|
335
|
<s:action name="FooterPage" executeResult="true"/>
|
336
|
</div>
|
337
|
</div>
|
338
|
</div>
|
339
|
</div>
|
340
|
</div>
|
341
|
</div>
|
342
|
</body>
|
343
|
</html>
|