Changes for page Collabs

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

From version 7.1
edited by hbpadmin
on 2022/03/23 19:34
Change comment: Install extension [eu.hbp.wiki:xwiki-awm-collabs/0.38.6]
To version 4.1
edited by hbpadmin
on 2021/05/11 18:10
Change comment: Install extension [eu.hbp.wiki:xwiki-awm-collabs/0.28.0]

Summary

Details

Page properties
Content
... ... @@ -1,6 +1,7 @@
1 1  {{velocity output="false"}}
2 2   #set($displayContentFooter=false)
3 3   #set($displayDocExtra=false)
4 + #set($displayContentMenu=false)
4 4   $xwiki.ssx.use('Collaboratory.UX.SSX.noheader')
5 5  
6 6   #set ($clbaction = $request.getParameter("clbaction"))
... ... @@ -7,13 +7,10 @@
7 7   #set ($isAuthenticated = ($xcontext.user != 'XWiki.XWikiGuest'))
8 8   #set ($isCreationForm = $clbaction.equals('create'))
9 9  
10 - #macro(clbCreationForm) <div class="container">
11 + #macro(clbCreationForm)
11 11   <div class="row">
12 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>
14 + <h1>Collabs</h1>
17 17   </div>
18 18   <div class="col-md-6">
19 19   <a href="/bin/view/Collabs" class="btn btn-primary pull-right">Back to list</a>
... ... @@ -20,19 +20,17 @@
20 20   </div>
21 21   </div>
22 22   <div class="row">
23 - <div id="root"></div>
21 + <clb-collab-create></clb-collab-create>
24 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 28   #end
29 29  
30 - #macro(clbList $canCreate) <div class="container">
25 + #macro(clbList $canCreate)
26 + <div class="container">
31 31   <div class="row">
32 32   <div class="col-md-8">
33 33   <h1>Collab Search</h1>
34 34   <p class="help-block">
35 - Find available collabs searching for words in title and description.<br />
31 + Find available collabs searching for terms in title and/or description.<br />
36 36   You can refine the results using the filters.
37 37   </p>
38 38   </div>
... ... @@ -46,17 +46,20 @@
46 46   <div id="root"></div>
47 47   </div>
48 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 51   #end
52 52   {{/velocity}}
53 -
47 +
54 54   {{velocity}}
55 55   {{html clean="false"}}
56 56   #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">
57 57   #clbCreationForm()
58 58   #else
59 - #clbList($isAuthenticated)
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)
60 60   #end
59 +
61 61   {{/html}}
62 62   {{/velocity}}