Attention: The EBRAINS IDM/IAM will be down tomorrow, Wednesday 17nd December, from 17:00 CET for up to 30 minutes for maintenance. Please be aware that this will affect all services that require login or authentication.


Wiki source code of Collabs

Version 1.2 by hbpadmin on 2019/05/20 14:15

Show last authors
1 {{velocity output="false"}} #set($displayContentFooter=false)
2 #set($displayDocExtra=false)
3 #set($displayContentMenu=false)
4 $xwiki.ssx.use('Collaboratory.UX.SSX.noheader')
5
6 #set ($clbaction = $request.getParameter("clbaction"))
7 #set ($isAuthenticated = ($xcontext.user != 'XWiki.XWikiGuest'))
8 #set ($isCreationForm = $clbaction.equals('create'))
9
10 #macro(clbCreationForm)
11 <div class="row">
12 <div class="col-md-6">
13 <h1>Collabs</h1>
14 </div>
15 <div class="col-md-6">
16 <a href="/bin/view/Collabs" class="btn btn-primary pull-right">Back to list</a>
17 </div>
18 </div>
19 <div class="row">
20 <clb-collab-create></clb-collab-create>
21 </div>
22 #end
23
24 #macro(clbList $canCreate)
25 <div class="row">
26 <div class="col-md-6">
27 <h1>Collabs</h1>
28 </div>
29 #if($canCreate)
30 <div class="col-md-6">
31 <a href="/bin/view/Collabs?clbaction=create" class="btn btn-primary pull-right">Create a collab</a>
32 </div>
33 #end
34 </div>
35 <div class="row">
36 <clb-current-user authenticated="$isAuthenticated"></clb-current-user>
37 <clb-collab-list></clb-collab-list>
38 </div>
39 #end
40 {{/velocity}}
41 \\{{velocity}} {{html clean="false"}}
42 <script src="$services.webjars.url('eu.hbp.wiki:xwiki-webapp-collaboratory', 'collab.js')" type="text/javascript"></script>
43 <div class="container clb-content">
44 #if($isCreationForm)
45 #clbCreationForm()
46 #else
47 #clbList($isAuthenticated)
48 #end
49 </div>
50 {{/html}}
51 {{/velocity}}
52
53 (% class="container clb-content" %)
54 (((
55 (% class="row" %)
56 (((
57 (% class="col-md-6" %)
58 (((
59 = Collabs =
60 )))
61
62 (% class="col-md-6" %)
63 (((
64 [[Create a collab>>path:/bin/view/Collabs?clbaction=create||class="btn btn-primary pull-right"]]
65 )))
66 )))
67
68 (% class="row" %)
69 (((
70
71 )))
72 )))
73
74