diff options
author | Simon Rettberg | 2018-02-14 14:30:18 +0100 |
---|---|---|
committer | Simon Rettberg | 2018-02-14 14:30:18 +0100 |
commit | db4cf34ba9782dd5709a79a2d9a8e0337661486c (patch) | |
tree | 6798964f8eeb3ccee662da604e76b98aea8a2485 /modules-available/minilinux/templates | |
parent | Global: Only show "Warning" badge at the top if user can view event log, (diff) | |
download | slx-admin-db4cf34ba9782dd5709a79a2d9a8e0337661486c.tar.gz slx-admin-db4cf34ba9782dd5709a79a2d9a8e0337661486c.tar.xz slx-admin-db4cf34ba9782dd5709a79a2d9a8e0337661486c.zip |
[minilinux] Use new permission helpers
Diffstat (limited to 'modules-available/minilinux/templates')
-rw-r--r-- | modules-available/minilinux/templates/filelist.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/minilinux/templates/filelist.html b/modules-available/minilinux/templates/filelist.html index 34138c14..8df868d2 100644 --- a/modules-available/minilinux/templates/filelist.html +++ b/modules-available/minilinux/templates/filelist.html @@ -18,7 +18,7 @@ <p> {{lang_canUpdate1}} <b>{{title}}</b> {{lang_canUpdate2}} </p> - <button {{^allowedToUpdate}}disabled{{/allowedToUpdate}} class="btn btn-primary" onclick="slxUpdateAll(this, 'download-{{id}}')"><span class="glyphicon glyphicon-refresh"></span> {{lang_update}}<span></span></button> + <button {{perms.update.disabled}} class="btn btn-primary" onclick="slxUpdateAll(this, 'download-{{id}}')"><span class="glyphicon glyphicon-refresh"></span> {{lang_update}}<span></span></button> {{/systemChanged}} {{^systemChanged}} <p>{{lang_systemUpdated}}</p> @@ -35,8 +35,8 @@ {{#fileChanged}}<span class="glyphicon glyphicon-exclamation-sign"></span> <b>{{lang_outdated}}</b>{{/fileChanged}} </div> <div class="col-xs-2"> - {{#fileChanged}}<button {{^allowedToUpdate}}disabled{{/allowedToUpdate}} class="btn btn-primary btn-xs update-button" onclick="slxUpdate('{{uid}}', '{{id}}', '{{name}}')"><span class="glyphicon glyphicon-refresh"></span> {{lang_update}}</button> {{/fileChanged}} - {{^fileChanged}}<button {{^allowedToUpdate}}disabled{{/allowedToUpdate}} class="btn btn-default btn-xs" onclick="slxUpdate('{{uid}}', '{{id}}', '{{name}}')"><span class="glyphicon glyphicon-download-alt"></span> {{lang_redownload}}</button> {{/fileChanged}} + {{#fileChanged}}<button {{perms.update.disabled}} class="btn btn-primary btn-xs update-button" onclick="slxUpdate('{{uid}}', '{{id}}', '{{name}}')"><span class="glyphicon glyphicon-refresh"></span> {{lang_update}}</button> {{/fileChanged}} + {{^fileChanged}}<button {{perms.update.disabled}} class="btn btn-default btn-xs" onclick="slxUpdate('{{uid}}', '{{id}}', '{{name}}')"><span class="glyphicon glyphicon-download-alt"></span> {{lang_redownload}}</button> {{/fileChanged}} </div> </div> {{{download}}} |