Wiki source code of Activity Stream Version 2

Last modified by Vincent Massol on 2024/11/19 16:12

Show last authors
1 {{velocity}}
2 $xwiki.ssx.use("Improvements.ActivityStreamV2")
3 #set ($ok = $xwiki.jsfx.use('js/xwiki/editors/dataeditors.js', true))
4 #macro(changeEntry $author $action $pageName $time)
5 <span class="status-body">
6 <span class="status-content">
7 #if("$!author" != "")
8 #if("$!author" == "superadmin")
9 $!author
10 #else
11 <a class="tweet-url screen-name" href="."> $!author</a>
12 #end
13 #end
14 #if("$!action" == "modified")
15 <span class="secondary">$!action</span> <a href="/xwiki/bin/view/Main/" class="typePage type">
16 #end
17 #if("$!action" == "created")
18 <span class="secondary">$!action</span> <a href="/xwiki/bin/view/Main/" class="typeCreatePage type">
19 #end
20 #if("$!pageName" != "") $!pageName #end</a>
21 <span class="entry-content">
22 </span>
23 </span>
24 <span class="meta entry-meta">
25 <a href="." rel="bookmark" class="entry-date">
26 <span data="{time:'Thu Jul 15 11:44:00 +0000 2010'}" class="published timestamp">#if("$!time" != "") $!time #end</span></a>
27 <span class="separator">&#183;</span> <a href=".">Annotations</a> <span class="itemCount">(0)</span>
28 <span class="separator">&#183;</span> <a href=".">Comments</a> <span class="itemCount">(0)</span>
29 <span class="separator">&#183;</span> <a href=".">Attachments</a> <span class="itemCount">(0)</span>
30 </span>
31 </span>
32 #end
33 #macro(simpleEntry $author $action $pageName $time)
34 <span class="status-body">
35 <span class="status-content">
36 <span class="status-header">
37 <span class="status-action">
38 #if("$!author" != "")
39 #if("$!author" == "superadmin")
40 $!author
41 #else
42 <a class="tweet-url screen-name" href="."> $!author</a>
43 #end
44 #end
45 #if("$!action" == "modified")
46 <span class="secondary">$!action</span> <a href="/xwiki/bin/view/Main/" class="typePage type">
47 #end
48 #if("$!action" == "created")
49 <span class="secondary">$!action</span> <a href="/xwiki/bin/view/Main/" class="typeCreatePage type">
50 #end
51 #if("$!pageName" != "") $!pageName #end</a>
52 </span>
53 <span class="meta timeFloated">
54 <span class="published timestamp">#if("$!time" != "") $!time #end</span>
55 </span>
56 </span>
57 <span class="entry-content">
58 </span>
59 </span>
60 <div class="clearfloats"></div>
61 </span>
62 #end
63 #macro(entryHeader $author $action $pageName $time)
64 <span class="status-header">
65 <span class="status-action">
66 #if("$!author" != "")
67 #if("$!author" == "superadmin")
68 $!author
69 #else
70 <a class="tweet-url screen-name" href="."> $!author</a>
71 #end
72 #end
73 #if(("$!action" != "created") && ("$!action" != "modified") && ("$!action" != "annotated") && ("$!action" != "commented") && ("$!action" != "attached") && ("$!action" != "edited"))
74 <span class="secondary">$!action</span>
75 #else
76 #if("$!action" == "modified")
77 <span class="secondary">$!action</span> <a href="/xwiki/bin/view/Main/" class="typePage type">
78 #end
79 #if("$!action" == "annotated")
80 <span class="secondary">$!action on</span> <a href="/xwiki/bin/view/Main/" class="typePage type">
81 #end
82 #if("$!action" == "created")
83 <span class="secondary">$!action</span> <a href="/xwiki/bin/view/Main/" class="typeCreatePage type">
84 #end
85 #if("$!action" == "commented")
86 <span class="secondary">$!action on</span> <a href="/xwiki/bin/view/Main/" class="typePage type">
87 #end
88 #if("$!action" == "attached")
89 <span class="secondary">$!action to</span> <a href="/xwiki/bin/view/Main/" class="typePage type">
90 #end
91 #if("$!action" == "edited")
92 <span class="secondary">$!action</span> <a href="/xwiki/bin/view/Main/" class="typeEditPage type">
93 #end
94 #end
95 #if("$!pageName" != "") $!pageName #end</a>
96 </span>
97 <span class="meta timeFloated">
98 <span class="published timestamp">#if("$!time" != "") $!time #end</span>
99 </span>
100 <div class="clearfloats"></div>
101 </span>
102 #end
103 #macro(userPhoto $user)
104 <span class="thumb vcard author"><a class="tweet-url profile-pic url" href="."><img width="48" height="48"
105 #if("$!user" == "")
106 src="/xwiki/skins/colibri/noavatar.png"
107 #end
108 #if("$!user" == "admin")
109 src="/xwiki/bin/download/XWiki/evalica/n68306366210821986350.jpg"
110 #end
111 #if("$!user" == "marta")
112 src="/xwiki/skins/colibri/noavatar.png"
113 #end
114 #if("$!user" == "raluca")
115 src="/xwiki/skins/colibri/noavatar.png"
116 #end
117 class="photo fn" alt=""></a></span>
118 #end
119 #macro(moreInfo $time $annotations $comments $attachments)
120 ## <span class="meta entry-meta">
121 ## ##if("$!time" != "")
122 ## ##<span class="published timestamp">$!time</span> <span class="separator">&#183;</span>
123 ## ##end
124 ## #if("$!annotations" != "")
125 ## <a href=".">Annotations</a> <span class="itemCount">($!annotations)</span> <span class="separator">&#183;</span>
126 ## #end
127 ## #if("$!comments" != "")
128 ## <a href=".">Comments</a> <span class="itemCount">($!comments)</span> <span class="separator">&#183;</span>
129 ## #end
130 ## #if("$!attachments" != "")
131 ## <a href=".">Attachments</a> <span class="itemCount">($!attachments)</span>
132 ## #end
133 ## </span>
134 #end
135 {{html wiki="true"}}
136 <div id="activity" style="float: left; padding-left:10px; margin-top:20px;">
137 <h1 style="margin-top: 0pt;">Recent Changes</h1>
138 <form id="AddComment" method="post" action="/xwiki/bin/commentadd/Main/WebHome?xpage=view&amp;viewer=comments#commentform">
139 <fieldset id="commentform" class="expanded">
140 <div class="commentavatar"><img title="XWiki.Admin" alt="XWiki.Admin" src="/xwiki/bin/download/XWiki/evalica/n68306366210821986350.jpg" width="50px">
141 </div>
142 <div class="commentwrapper">
143 <label><span class="hidden">Author:</span> <span class="wikilink"><a href="/xwiki/bin/view/XWiki/Admin">Administrator</a></span> says:</label>
144 <input type="hidden" value="XWiki.Admin" name="XWiki.XWikiComments_author"/>
145 <input type="hidden" value="" name="XWiki.XWikiComments_date"/>
146 <input type="hidden" value="" name="XWiki.XWikiComments_replyto"/>
147 <div class="commentcontainer">
148 <label for="XWiki.XWikiComments_comment">Comment:</label>
149 <textarea class="shareInput withTip" value="">share your thoughts ...</textarea>
150 </div>
151 <span class="buttonwrapper"><input type="submit" class="button" value="Share"/></span>
152 </div>
153 <div class="clearfloats"></div>
154 </fieldset>
155 </form>
156 <ol class="statuses" id="timeline">
157 <li class="hentry status">
158 #userPhoto("marta")
159 <span class="status-body">
160 <span class="status-content">
161 #entryHeader("Marta" "says" "" "2 minutes ago")
162 <span class="entry-content">Jazz and background noise from a busy café! Slowly taking off the stress of work.</span>
163 </span>
164 #moreInfo ("2 minutes ago" "" "3" "0")
165 </span>
166 </li>
167 <li class="hentry status">
168 #userPhoto("marta")
169 <span class="status-body">
170 <span class="status-content">
171 #entryHeader("Marta" "annotated" "XWiki Preferences" "7 minutes ago")
172 <span class="entry-content">
173 <div class="commentContainer">
174 <div class="annotationContainer">
175 <span class="annotatedContent">Vivamus accumsan velit luctus tortor feugiat a facilisis magna adipiscing. Sed id velit id erat convallis imperdiet at id est. Aenean eget sapien massa. Donec sit amet magna nisi. In lobortis, massa sed vestibulum tincidunt, lorem magna suscipit est, non iaculis ante odio ut tellus. Sed eleifend justo sed magna posuere feugiat.</span>
176 </div>
177 <div class="commentQuote lQuo hidden">&nbsp;</div>
178 <div class="commentQuote rQuo hidden">&nbsp;</div>
179 <div class="annotation comment">This is a bug. This shouldn't appear here and should be removed from code.</div>
180 </div>
181 </span>
182 </span>
183 #moreInfo ("7 minutes ago" "1" "0" "0")
184 </span>
185 </li>
186 <li class="hentry status">
187 #userPhoto("admin")
188 <span class="status-body">
189 <span class="status-content">
190 #entryHeader("Administrator" "commented" "Avatars Menu Proposal" "14 minutes ago")
191 <span class="entry-content">
192 <div class="commentContainer review">
193 <div class="comment">The action that can be set on the Avatar is: - go to profile; - change avatar. That picture can offer the status if the avatar is set or standard and can provide an easy access to this change. This step is kind of optional and not a core feature, so we can chose not to make it so visible.</div>
194 </div>
195 </span>
196 </span>
197 #moreInfo ("14 minutes ago" "0" "1" "0")
198 </span>
199 </li>
200 <li class="hentry status">
201 #userPhoto("raluca")
202 <span class="status-body tag-wrapper">
203 <span class="status-content tag">
204 #entryHeader("Raluca" "annotated" "Welcome to your wiki" "14 minutes ago")
205 <span class="entry-content">
206 <div class="commentContainer">
207 <div class="annotationContainer">
208 <span class="annotatedContent">Advanced Menu</span>
209 </div>
210 <div class="annotation comment">This is nice Marta - productive I might say. I was thinking about having both menus - should be interesting, but not content related (the menu you've chosen is especially content related).</div>
211 </div>
212 </span>
213 </span>
214 <div class="otherReviews xclass collapsable collapsed tag-tool tag-more">
215 <div class="xclass-title">there are 3 other reviews by 3 authors <span class="menuarrow secondary">&#9660;</span></div>
216 <div class="otherReviews xclass-content">
217 <img height="30" title="Raluca Stavro" src="/xwiki/skins/colibri/noavatar.png" class="avatar" alt="Raluca Stavro">
218 <img height="30" title="Marta G" src="/xwiki/skins/colibri/noavatar.png" class="avatar" alt="Marta G">
219 <img height="30" title="Administrator" src="/xwiki/bin/download/XWiki/evalica/n68306366210821986350.jpg" class="avatar" alt="Administrator">
220 </div>
221 </div>
222 #moreInfo ("14 minutes ago" "1" "3" "0")
223 <div class="clearfloats"></div>
224 </span>
225 </li>
226 <li class="hentry status">
227 #userPhoto("marta")
228 <span class="status-body">
229 <span class="status-content">
230 #entryHeader("Marta" "attached" "Avatars Menu Proposal" "14 minutes ago")
231 <span class="entry-content">
232 <div class="commentContainer">
233 <div class="typeAttachment type">
234 <a href="." class="typeImage type">statusCasting.png</a>
235 </div>
236 <div class="typeAttachment type">
237 <a href="." class="typeJar type">jmeter-2.2.jar</a>
238 </div>
239 <div class="typeAttachment type">
240 <a href="." class="typeImage type">invitation-icon-versions.png</a>
241 </div>
242 <div class="annotation comment"></div>
243 </div>
244 </span>
245 </span>
246 #moreInfo ("14 minutes ago" "0" "0" "3")
247 </span>
248 </li>
249 <li class="hentry status thread">
250 #userPhoto("admin")
251 <span class="status-body">
252 <span class="status-content">
253 #entryHeader("Administrator" "created" "Welcome to your wiki" "16 minutes ago")
254 <span class="entry-content">
255 </span>
256 </span>
257 #moreInfo ("16 minutes ago" "0" "0" "0")
258 </span>
259 <span class="status-body tag-wrapper">
260 <span class="status-content tag">
261 #entryHeader("" "edited" "Active State: Items" "1 day ago")
262 <span class="entry-content">
263 <div class="commentContainer">
264 removed justified alignment <span class="meta"><span class="separator">&#183;</span> <a href=".">see changes</a> </span>
265 </div>
266 </span>
267 </span>
268 <div class="otherReviews xclass collapsable collapsed tag-tool tag-more">
269 <div class="xclass-title"> edited by 2 other authors <span class="menuarrow secondary">&#9660;</span></div>
270 <div class="otherReviews xclass-content">
271 <img height="30" title="Raluca Stavro" src="/xwiki/skins/colibri/noavatar.png" class="avatar" alt="Raluca Stavro">
272 <img height="30" title="Administrator" src="/xwiki/bin/download/XWiki/evalica/n68306366210821986350.jpg" class="avatar" alt="Administrator">
273 </div>
274 </div>
275 #moreInfo ("1 day ago" "0" "0" "0")
276 <div class="clearfloats"></div>
277 </span>
278 <span class="status-body tag-wrapper">
279 <span class="status-content tag">
280 #entryHeader("" "annotated" "Welcome to your wik" "2 days ago")
281 <span class="entry-content">
282 <div class="commentContainer">
283 <div class="annotationContainer">
284 <span class="annotatedContent">This is the Main space</span>
285 </div>
286 <div class="annotation comment">kind of obvious the afirmation?</div>
287 </div>
288 </span>
289 </span>
290 <div class="otherReviews xclass collapsable collapsed tag-tool tag-more">
291 <div class="xclass-title">there is 1 other review by 1 author <span class="menuarrow secondary">&#9660;</span></div>
292 <div class="otherReviews xclass-content">
293 <img height="30" title="Marta G" src="/xwiki/skins/colibri/noavatar.png" class="avatar" alt="Marta G">
294 </div>
295 </div>
296 #moreInfo ("2 days ago" "2" "0" "0")
297 <div class="clearfloats"></div>
298 </span>
299 </li>
300 </ol>
301 <a href="/xwiki/bin/view/Main/MyDashboard?itemnumber=50" class="moreItems">Show more items</a> <span class="menuarrow secondary">&#9660;</span>
302 </div>
303 {{/html}}
304
305 {{html}}
306 <div id="activity" style="float: left; padding-left: 20px;" class="hidden">
307 <h1 class="wikigeneratedheader" id="HRecentChanges"><span>Recent Changes</span></h1>
308 <ol class="statuses" id="timeline">
309 <li class="hentry status thread">
310 #userPhoto("")
311 #changeEntry("superadmin" "modified" "Watchlist weekly email notifier " "today")
312 #changeEntry("" "modified" "Watchlist hourly email notifier " "today")
313 #changeEntry("" "modified" "Watchlist daily email notifier " "today")
314 #changeEntry("" "modified" "XWiki Scheduler Job Class" "today")
315 #changeEntry("" "created" "XWiki User Class" "today")
316 #changeEntry("" "created" "XWiki Skin Class" "today")
317 #changeEntry("" "created" "XWiki Rights Class" "today")
318 </li>
319 <li class="hentry status thread">
320 #userPhoto("admin")
321 #changeEntry("Administrator" "modified" "Watchlist weekly email notifier" "today")
322 </li>
323 <li class="hentry status thread">
324 #userPhoto("")
325 #changeEntry("superadmin" "created" "XWiki Group Class" "today")
326 #changeEntry("" "created" "XWiki Global Rights Class" "today")
327 #changeEntry("" "created" "XWiki Comment Class" "today")
328 #changeEntry("" "created" "XWiki Wiki Macro Parameter Class" "today")
329 #changeEntry("" "created" "XWiki Wiki Macro Class" "today")
330 #changeEntry("" "created" "XWiki Tag Class" "today")
331 #changeEntry("" "created" "XWiki Sheet Class" "today")
332 #changeEntry("" "created" "XWiki WatchList Notifier Class" "today")
333 #changeEntry("" "created" "XWiki WatchList Notification Rules Class " "today")
334 #changeEntry("" "created" "XWiki Mail Class" "today")
335 #changeEntry("" "created" "XWiki Stylesheet Extension Class" "today")
336 #changeEntry("" "created" "XWiki Javascript Extension Class" "today")
337 #changeEntry("" "created" "XWiki Feed Entry Class " "today")
338 #changeEntry("" "created" "XWiki Aggregator URL Class" "today")
339 </li>
340 <li class="hentry status thread">
341 #userPhoto("admin")
342 #changeEntry("Administrator" "created" "Tab " "6 days ago")
343 #changeEntry("" "created" "EditForm" "6 days ago")
344 #changeEntry("" "created" "DisplayForm" "6 days ago")
345 #changeEntry("" "created" "CreateForm " "6 days ago")
346 </li>
347 <li class="hentry status thread">
348 #userPhoto("admin")
349 #changeEntry("Administrator" "created" "Lucene search administration" "1 month ago")
350 #changeEntry("" "created" "Search administration" "1 month ago")
351 </li>
352 <li class="hentry status thread">
353 #userPhoto("admin")
354 #changeEntry("Administrator" "created" "Lucene Search" "2 month ago")
355 </li>
356 <li class="hentry status thread">
357 #userPhoto("admin")
358 #changeEntry("Administrator" "created" "Script" "3 month ago")
359 </li>
360 </ol>
361 </div>
362
363 <div id="activity" style="float: right; padding-left: 20px;">
364 <h1 class="wikigeneratedheader" id="HRecentChanges"><span>Recent Changes</span></h1>
365 <ol class="statuses simple" id="timeline">
366 <li class="hentry status thread">
367 #userPhoto("")
368 #simpleEntry("superadmin" "modified" "Watchlist weekly email notifier " "today")
369 #simpleEntry("" "modified" "Watchlist hourly email notifier " "today")
370 #simpleEntry("" "modified" "Watchlist daily email notifier " "today")
371 #simpleEntry("" "modified" "XWiki Scheduler Job Class" "today")
372 #simpleEntry("" "created" "XWiki User Class" "today")
373 #simpleEntry("" "created" "XWiki Skin Class" "today")
374 #simpleEntry("" "created" "XWiki Rights Class" "today")
375 </li>
376 <li class="hentry status thread">
377 #userPhoto("admin")
378 #simpleEntry("Administrator" "modified" "Watchlist weekly email notifier" "today")
379 </li>
380 <li class="hentry status thread">
381 #userPhoto("")
382 #simpleEntry("superadmin" "created" "XWiki Group Class" "today")
383 #simpleEntry("" "created" "XWiki Global Rights Class" "today")
384 #simpleEntry("" "created" "XWiki Comment Class" "today")
385 #simpleEntry("" "created" "XWiki Wiki Macro Parameter Class" "today")
386 #simpleEntry("" "created" "XWiki Wiki Macro Class" "today")
387 #simpleEntry("" "created" "XWiki Tag Class" "today")
388 #simpleEntry("" "created" "XWiki Sheet Class" "today")
389 #simpleEntry("" "created" "XWiki WatchList Notifier Class" "today")
390 #simpleEntry("" "created" "XWiki WatchList Notification Rules Class " "today")
391 #simpleEntry("" "created" "XWiki Mail Class" "today")
392 #simpleEntry("" "created" "XWiki Stylesheet Extension Class" "today")
393 #simpleEntry("" "created" "XWiki Javascript Extension Class" "today")
394 #simpleEntry("" "created" "XWiki Feed Entry Class " "today")
395 #simpleEntry("" "created" "XWiki Aggregator URL Class" "today")
396 </li>
397 <li class="hentry status thread">
398 #userPhoto("admin")
399 #simpleEntry("Administrator" "created" "Tab" "June 25")
400 #simpleEntry("" "created" "EditForm" "June 25")
401 #simpleEntry("" "created" "DisplayForm" "June 25")
402 #simpleEntry("" "created" "CreateForm " "June 25")
403 #simpleEntry("" "created" "Lucene search administration" "June 24")
404 #simpleEntry("" "created" "Search administration" "June 24")
405 #simpleEntry("" "created" "Lucene Search" "June 21")
406 #simpleEntry("" "created" "Script" "June 5")
407 </li>
408 </ol>
409 <a href="/xwiki/bin/view/Main/MyDashboard?itemnumber=50" class="moreItems">Show more items</a> <span class="menuarrow secondary">&#9660;</span>
410 </div>
411 {{/html}}
412 {{/velocity}}

Get Connected