diff options
author | Simon Rettberg | 2014-05-26 22:49:54 +0200 |
---|---|---|
committer | Simon Rettberg | 2014-05-26 22:49:54 +0200 |
commit | a4f4147b6fe5f2a003a61cf8a8f7508c94130b31 (patch) | |
tree | de34472a2b9bd83909469affb884619b4858efc1 /templates/minilinux/filelist.html | |
parent | WIP (diff) | |
download | slx-admin-a4f4147b6fe5f2a003a61cf8a8f7508c94130b31.tar.gz slx-admin-a4f4147b6fe5f2a003a61cf8a8f7508c94130b31.tar.xz slx-admin-a4f4147b6fe5f2a003a61cf8a8f7508c94130b31.zip |
WIP
Diffstat (limited to 'templates/minilinux/filelist.html')
-rw-r--r-- | templates/minilinux/filelist.html | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/templates/minilinux/filelist.html b/templates/minilinux/filelist.html new file mode 100644 index 00000000..38b709f6 --- /dev/null +++ b/templates/minilinux/filelist.html @@ -0,0 +1,39 @@ +<div class="container"> + + {{#systems}} + <div class="panel panel-default"> + <div class="panel-heading"> + <h4>{{title}}</h4> + </div> + <div class="panel-body" id="download-{{id}}"> + <ul class="list-group"> + {{#files}} + <li class="list-group-item" id="{{uid}}"> + {{name}} + {{#changed}}<span class="btn btn-primary btn-sm" onclick="slxUpdate('{{uid}}', '{{id}}', '{{name}}')">Aktualisieren</span>{{/changed}} + </li> + {{/files}} + </ul> + </div> + </div> + {{/systems}} + {{^systems}} + <div class="row well well-sm">Keine Konfigurationspakete gefunden!</div> + {{/systems}} +</div> + +<script type="text/javascript"> +function slxUpdate(uid, id, name) +{ + $('#' + uid).load('?do=MiniLinux', + { action : "download", token : TOKEN, id : id, name : name }, + function(response, status, xhr) { + if (status === "error") { + var msg = "Fehler beim Abruf: "; + $('#' + uid).html(msg + xhr.status + " " + xhr.statusText); + } else { + setTimeout(tmInit, 50); + } + }); +} +</script>
\ No newline at end of file |