Changes for page App Within Minutes

Last modified by Ecaterina Valica on 2019/03/27 14:32

From version 4.1
edited by Ecaterina Valica
on 2016/11/17 15:22
Change comment: Install extension [org.xwiki.platform:xwiki-platform-appwithinminutes-ui-8.2.1]
To version 1.1
edited by Ludovic Dubost
on 2012/08/06 21:16
Change comment: Copied from incubator:AppWithinMinutes.WebHome

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -$services.localization.render('platform.appwithinminutes.homePageTitle')
1 +$msg.get('platform.appwithinminutes.homePageTitle')
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.evalica
1 +xwiki:XWiki.ludovic
Hidden
... ... @@ -1,1 +1,1 @@
1 -true
1 +false
Content
... ... @@ -1,11 +1,11 @@
1 1  {{velocity}}
2 -$services.localization.render('platform.appwithinminutes.description')
2 +$msg.get('platform.appwithinminutes.description')
3 3  
4 4  #if($hasCreateSpace)
5 - (% class="buttonwrapper" %)[[$services.localization.render('platform.appwithinminutes.createAppButtonLabel')>>CreateApplication||class="button"]]
5 + (% class="buttonwrapper" %)[[$msg.get('platform.appwithinminutes.createAppButtonLabel')>>CreateApplication||class="button"]]
6 6  
7 7  #end
8 -= $services.localization.render('platform.appwithinminutes.appsLiveTableHeading') =##
8 += $msg.get('platform.appwithinminutes.appsLiveTableHeading') =##
9 9  #set($columnsProperties = {
10 10   'doc.space': {'type': 'text', 'link': 'view', 'size': 10, 'filterable': true, 'sortable': true},
11 11   'doc.author': {'type': 'text', 'link': 'author', 'size': 10, 'filterable': true, 'sortable': true},
... ... @@ -24,5 +24,4 @@
24 24  })
25 25  #set($columns = ['doc.space', 'doc.author', 'doc.date', '_actions'])
26 26  #livetable('livetable' $columns $columnsProperties $options)
27 -#set($docextras=[])
28 28  {{/velocity}}
XWiki.JavaScriptExtension[0]
Code
... ... @@ -1,14 +1,7 @@
1 1  document.observe('xwiki:livetable:newrow', function(event) {
2 - // Fix the display of the application name.
3 - var appLink = event.memo.row.down('td.doc_space a');
4 - var appReference = XWiki.Model.resolve(event.memo.data['doc_space'], XWiki.EntityType.SPACE);
5 - var appLocation = appReference.getReversedReferenceChain().map(function(spaceReference) {
6 - return spaceReference.name;
7 - }).join(' \u00BB ');
8 - appLink.update(appLocation.escapeHTML());
9 -
10 10   // Add the xredirect parameter to the query string of the delete action to
11 11   // redirect the user back to the live table after an application is deleted.
12 12   var deleteLink = event.memo.row.down('td.actions').down('a.actiondelete');
13 - deleteLink.href = deleteLink.href + '&xredirect=' + encodeURIComponent(window.location.href);
5 + // The delete URL doesn't have any query string by default.
6 + deleteLink.href = deleteLink.href + '?xredirect=' + encodeURIComponent(window.location.href);
14 14  });