Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
2.1 | 1 | {{velocity output="false"}} |
| 2 | #set($displayContentFooter=false) | ||
| |
1.1 | 3 | #set($displayDocExtra=false) |
| 4 | $xwiki.ssx.use('Collaboratory.UX.SSX.noheader') | ||
| |
4.1 | 5 | |
| |
1.1 | 6 | #set ($clbaction = $request.getParameter("clbaction")) |
| 7 | #set ($isAuthenticated = ($xcontext.user != 'XWiki.XWikiGuest')) | ||
| 8 | #set ($isCreationForm = $clbaction.equals('create')) | ||
| |
4.1 | 9 | |
| |
5.1 | 10 | #macro(clbCreationForm) <div class="container"> |
| |
1.1 | 11 | <div class="row"> |
| 12 | <div class="col-md-6"> | ||
| |
5.1 | 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> | ||
| |
1.1 | 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"> | ||
| |
5.1 | 23 | <div id="root"></div> |
| |
1.1 | 24 | </div> |
| |
5.1 | 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> | ||
| |
1.1 | 28 | #end |
| |
4.1 | 29 | |
| |
5.1 | 30 | #macro(clbList $canCreate) <div class="container"> |
| |
1.1 | 31 | <div class="row"> |
| |
4.1 | 32 | <div class="col-md-8"> |
| 33 | <h1>Collab Search</h1> | ||
| 34 | <p class="help-block"> | ||
| |
5.1 | 35 | Find available collabs searching for words in title and description.<br /> |
| |
4.1 | 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> | ||
| |
1.1 | 44 | </div> |
| 45 | <div class="row"> | ||
| |
4.1 | 46 | <div id="root"></div> |
| |
1.1 | 47 | </div> |
| |
4.1 | 48 | </div> |
| |
5.1 | 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> | ||
| |
1.1 | 51 | #end |
| 52 | {{/velocity}} | ||
| |
5.1 | 53 | |
| |
2.1 | 54 | {{velocity}} |
| 55 | {{html clean="false"}} | ||
| |
1.1 | 56 | #if($isCreationForm) |
| 57 | #clbCreationForm() | ||
| 58 | #else | ||
| |
5.1 | 59 | #clbList($isAuthenticated) |
| |
1.1 | 60 | #end |
| 61 | {{/html}} | ||
| 62 | {{/velocity}} |