summaryrefslogtreecommitdiffstats
path: root/modules-available/minilinux/templates
diff options
context:
space:
mode:
authorChristian Hofmaier2018-01-16 17:50:22 +0100
committerChristian Hofmaier2018-01-16 17:50:22 +0100
commit3ddf56c399746efe3c56194b7be522a92caefb59 (patch)
tree67ef9c2584a12b1bf33164588e7ab8ce0d05326b /modules-available/minilinux/templates
parent[baseconfig_partitions_cdn] updated permission-descriptions (diff)
downloadslx-admin-3ddf56c399746efe3c56194b7be522a92caefb59.tar.gz
slx-admin-3ddf56c399746efe3c56194b7be522a92caefb59.tar.xz
slx-admin-3ddf56c399746efe3c56194b7be522a92caefb59.zip
[minilinux] implemented permission-system. you can't see the side without any permission. there are only 2 permissions: show the side and update content (which includes the show permission).
Diffstat (limited to 'modules-available/minilinux/templates')
-rw-r--r--modules-available/minilinux/templates/filelist.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules-available/minilinux/templates/filelist.html b/modules-available/minilinux/templates/filelist.html
index a1d0aa48..34138c14 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>
- <p><span class="btn btn-primary" onclick="slxUpdateAll(this, 'download-{{id}}')">{{lang_update}}</span></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>
{{/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}}<span class="btn btn-primary btn-xs update-button" onclick="slxUpdate('{{uid}}', '{{id}}', '{{name}}')">{{lang_update}}</span>{{/fileChanged}}
- {{^fileChanged}}<span class="btn btn-default btn-xs" onclick="slxUpdate('{{uid}}', '{{id}}', '{{name}}')">{{lang_redownload}}</span>{{/fileChanged}}
+ {{#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}}
</div>
</div>
{{{download}}}