Changes for page Collabs

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

From version 6.1
edited by hbpadmin
on 2022/03/22 18:10
Change comment: Install extension [eu.hbp.wiki:xwiki-awm-collabs/0.38.5]
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,5 +1,4 @@
1 1  {{velocity output="false"}}
2 - #set($annotationsActivated=false)
3 3   #set($displayContentFooter=false)
4 4   #set($displayDocExtra=false)
5 5   #set($displayContentMenu=false)
... ... @@ -9,13 +9,10 @@
9 9   #set ($isAuthenticated = ($xcontext.user != 'XWiki.XWikiGuest'))
10 10   #set ($isCreationForm = $clbaction.equals('create'))
11 11  
12 - #macro(clbCreationForm) <div class="container">
11 + #macro(clbCreationForm)
13 13   <div class="row">
14 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>
14 + <h1>Collabs</h1>
19 19   </div>
20 20   <div class="col-md-6">
21 21   <a href="/bin/view/Collabs" class="btn btn-primary pull-right">Back to list</a>
... ... @@ -22,19 +22,17 @@
22 22   </div>
23 23   </div>
24 24   <div class="row">
25 - <div id="root"></div>
21 + <clb-collab-create></clb-collab-create>
26 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 30   #end
31 31  
32 - #macro(clbList $canCreate) <div class="container">
25 + #macro(clbList $canCreate)
26 + <div class="container">
33 33   <div class="row">
34 34   <div class="col-md-8">
35 35   <h1>Collab Search</h1>
36 36   <p class="help-block">
37 - Find available collabs searching for words in title and description.<br />
31 + Find available collabs searching for terms in title and/or description.<br />
38 38   You can refine the results using the filters.
39 39   </p>
40 40   </div>
... ... @@ -48,17 +48,20 @@
48 48   <div id="root"></div>
49 49   </div>
50 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 53   #end
54 54   {{/velocity}}
55 -
47 +
56 56   {{velocity}}
57 57   {{html clean="false"}}
58 58   #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">
59 59   #clbCreationForm()
60 60   #else
61 - #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)
62 62   #end
59 +
63 63   {{/html}}
64 64   {{/velocity}}