summaryrefslogtreecommitdiffstats
path: root/modules-available/minilinux/templates/sources.html
diff options
context:
space:
mode:
authorSimon Rettberg2019-10-09 17:31:19 +0200
committerSimon Rettberg2019-10-09 17:31:19 +0200
commitf800abeea4f6c68182c51cd4aaea19d7636431c8 (patch)
tree802f9bcee14210b355cac211751449e31c71fbc0 /modules-available/minilinux/templates/sources.html
parentslx-fixes: Expose function for adding additional automatic confirm handlers (diff)
downloadslx-admin-f800abeea4f6c68182c51cd4aaea19d7636431c8.tar.gz
slx-admin-f800abeea4f6c68182c51cd4aaea19d7636431c8.tar.xz
slx-admin-f800abeea4f6c68182c51cd4aaea19d7636431c8.zip
[minilinux] Rewrite for multiple version/sources handling
* You can supply multiple sources for updates (URLs) * Sources can provide multiple branches * Each branch can supply multiple versions (eg. updates) TODO: Set global default version TODO: Supply hook to serversetup-ipxe to add specific boot entries TODO: UX polish TODO: phpdoc/polish
Diffstat (limited to 'modules-available/minilinux/templates/sources.html')
-rw-r--r--modules-available/minilinux/templates/sources.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/modules-available/minilinux/templates/sources.html b/modules-available/minilinux/templates/sources.html
new file mode 100644
index 00000000..f2e54745
--- /dev/null
+++ b/modules-available/minilinux/templates/sources.html
@@ -0,0 +1,42 @@
+<div class="panel panel-default">
+ <div class="panel-heading">
+ {{lang_sources}}
+ </div>
+ <table class="table table-condensed">
+ <thead>
+ <tr>
+ <th>{{lang_id}}</th>
+ <th>{{lang_title}}</th>
+ <th>{{lang_url}}</th>
+ <th>{{lang_lastUpdate}}</th>
+ <th>{{lang_key}}</th>
+ </tr>
+ </thead>
+ <tbody>
+ {{#list}}
+ <tr>
+ <td class="small">{{sourceid}}</td>
+ <td>{{title}}</td>
+ <td class="small">{{url}}</td>
+ <td class="{{update_class}}">{{lastupdate_s}}</td>
+ <td class="text-center">
+ <button type="button" class="btn btn-default btn-xs" data-confirm="#confirm-{{source}}" data-close="{{lang_close}}">
+ <span class="glyphicon glyphicon-eye-open"></span>
+ </button>
+ <pre id="confirm-{{source}}" class="hidden">{{pubkey}}</pre>
+ </td>
+ </tr>
+ {{/list}}
+ </tbody>
+ </table>
+ <div class="panel-body text-right">
+ <form method="post" action="?do=minilinux">
+ <input type="hidden" name="token" value="{{token}}">
+ <button type="submit" name="show" value="updatesources" class="btn btn-default"
+ onclick="$(this).find('.glyphicon').addClass('slx-rotation')" {{^show_refresh}}disabled{{/show_refresh}}>
+ <span class="glyphicon glyphicon-refresh"></span>
+ {{lang_updateSourcesButton}}
+ </button>
+ </form>
+ </div>
+</div> \ No newline at end of file