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 4.1 by hbpadmin on 2021/05/11 18:10

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