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 6.1 by hbpadmin on 2022/03/22 18:10

Show last authors
1 {{velocity output="false"}}
2 #set($annotationsActivated=false)
3 #set($displayContentFooter=false)
4 #set($displayDocExtra=false)
5 #set($displayContentMenu=false)
6 $xwiki.ssx.use('Collaboratory.UX.SSX.noheader')
7
8 #set ($clbaction = $request.getParameter("clbaction"))
9 #set ($isAuthenticated = ($xcontext.user != 'XWiki.XWikiGuest'))
10 #set ($isCreationForm = $clbaction.equals('create'))
11
12 #macro(clbCreationForm) <div class="container">
13 <div class="row">
14 <div class="col-md-6">
15 <h1>Create a Collab</h1>
16 <p class="help-block">
17 This page is used to create a new collab in the Collaboratory Wiki. Please plan your collab names in advance to avoid having many collabs with few pages and files. Thank you.
18 </p>
19 </div>
20 <div class="col-md-6">
21 <a href="/bin/view/Collabs" class="btn btn-primary pull-right">Back to list</a>
22 </div>
23 </div>
24 <div class="row">
25 <div id="root"></div>
26 </div>
27 <link rel="stylesheet" type="text/css" href="$services.webjars.url('eu.hbp.wiki:xwiki-webapp-collaboratory', 'style.css')" />
28 <script type="module" src="$services.webjars.url('eu.hbp.wiki:xwiki-webapp-collaboratory', 'collab-settings.js')"></script>
29 </div>
30 #end
31
32 #macro(clbList $canCreate) <div class="container">
33 <div class="row">
34 <div class="col-md-8">
35 <h1>Collab Search</h1>
36 <p class="help-block">
37 Find available collabs searching for words in title and description.<br />
38 You can refine the results using the filters.
39 </p>
40 </div>
41 <div class="col-md-4 pull-right">
42 #if($canCreate)
43 <a href="/bin/view/Collabs?clbaction=create" class="btn btn-primary pull-right">Create a collab</a>
44 #end
45 </div>
46 </div>
47 <div class="row">
48 <div id="root"></div>
49 </div>
50 </div>
51 <link rel="stylesheet" type="text/css" href="$services.webjars.url('eu.hbp.wiki:xwiki-webapp-collaboratory', 'style.css')" />
52 <script type="module" src="$services.webjars.url('eu.hbp.wiki:xwiki-webapp-collaboratory', 'collab-search.js')"></script>
53 #end
54 {{/velocity}}
55
56 {{velocity}}
57 {{html clean="false"}}
58 #if($isCreationForm)
59 #clbCreationForm()
60 #else
61 #clbList($isAuthenticated)
62 #end
63 {{/html}}
64 {{/velocity}}