Changes for page Collabs

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

From version 5.1
edited by hbpadmin
on 2021/06/09 18:00
Change comment: Install extension [eu.hbp.wiki:xwiki-awm-collabs/0.29.2]
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
... ... @@ -8,13 +8,10 @@
8 8   #set ($isAuthenticated = ($xcontext.user != 'XWiki.XWikiGuest'))
9 9   #set ($isCreationForm = $clbaction.equals('create'))
10 10  
11 - #macro(clbCreationForm) <div class="container">
11 + #macro(clbCreationForm)
12 12   <div class="row">
13 13   <div class="col-md-6">
14 - <h1>Create a Collab</h1>
15 - <p class="help-block">
16 - 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.
17 - </p>
14 + <h1>Collabs</h1>
18 18   </div>
19 19   <div class="col-md-6">
20 20   <a href="/bin/view/Collabs" class="btn btn-primary pull-right">Back to list</a>
... ... @@ -21,19 +21,17 @@
21 21   </div>
22 22   </div>
23 23   <div class="row">
24 - <div id="root"></div>
21 + <clb-collab-create></clb-collab-create>
25 25   </div>
26 - <link rel="stylesheet" type="text/css" href="$services.webjars.url('eu.hbp.wiki:xwiki-webapp-collaboratory', 'style.css')" />
27 - <script type="module" src="$services.webjars.url('eu.hbp.wiki:xwiki-webapp-collaboratory', 'collab-settings.js')"></script>
28 -</div>
29 29   #end
30 30  
31 - #macro(clbList $canCreate) <div class="container">
25 + #macro(clbList $canCreate)
26 + <div class="container">
32 32   <div class="row">
33 33   <div class="col-md-8">
34 34   <h1>Collab Search</h1>
35 35   <p class="help-block">
36 - Find available collabs searching for words in title and description.<br />
31 + Find available collabs searching for terms in title and/or description.<br />
37 37   You can refine the results using the filters.
38 38   </p>
39 39   </div>
... ... @@ -47,17 +47,20 @@
47 47   <div id="root"></div>
48 48   </div>
49 49  </div>
50 -<link rel="stylesheet" type="text/css" href="$services.webjars.url('eu.hbp.wiki:xwiki-webapp-collaboratory', 'style.css')" />
51 -<script type="module" src="$services.webjars.url('eu.hbp.wiki:xwiki-webapp-collaboratory', 'collab-search.js')"></script>
52 52   #end
53 53   {{/velocity}}
54 -
47 +
55 55   {{velocity}}
56 56   {{html clean="false"}}
57 57   #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">
58 58   #clbCreationForm()
59 59   #else
60 - #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)
61 61   #end
59 +
62 62   {{/html}}
63 63   {{/velocity}}