Wiki source code of Collabs

Last modified by hbpadmin on 2022/03/23 19:34

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