From f800abeea4f6c68182c51cd4aaea19d7636431c8 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 9 Oct 2019 17:31:19 +0200 Subject: [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 --- .../minilinux/templates/branches.html | 73 ++++++++++++ .../minilinux/templates/download.html | 1 - .../minilinux/templates/filelist.html | 125 +++++++++------------ .../minilinux/templates/page-minilinux.html | 26 +---- modules-available/minilinux/templates/sources.html | 42 +++++++ .../minilinux/templates/versionlist.html | 39 +++++++ 6 files changed, 208 insertions(+), 98 deletions(-) create mode 100644 modules-available/minilinux/templates/branches.html delete mode 100644 modules-available/minilinux/templates/download.html create mode 100644 modules-available/minilinux/templates/sources.html create mode 100644 modules-available/minilinux/templates/versionlist.html (limited to 'modules-available/minilinux/templates') diff --git a/modules-available/minilinux/templates/branches.html b/modules-available/minilinux/templates/branches.html new file mode 100644 index 00000000..1ba9497c --- /dev/null +++ b/modules-available/minilinux/templates/branches.html @@ -0,0 +1,73 @@ +{{#branches}} +
+ | {{name}} | +{{size_s}} | +{{mtime_s}} | +
+ {{^dltask}}
+ {{state}}
+ {{/dltask}}
+ {{#dltask}}
+
+
- {{#systemChanged}}
-
+
+
- {{lang_canUpdate1}} {{title}} {{lang_canUpdate2}} - - - {{/systemChanged}} - {{^systemChanged}} -{{lang_systemUpdated}} - {{/systemChanged}} -- {{lang_filesInVersion}} {{version}} -
{{lang_configurationPackageNotFound}}
- {{/systems}}
-
-
+ {{/dltask}}
+ |
+
{{lang_introText}}
\ No newline at end of file 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 @@ +{{lang_id}} | +{{lang_title}} | +{{lang_url}} | +{{lang_lastUpdate}} | +{{lang_key}} | +
---|---|---|---|---|
{{sourceid}} | +{{title}} | +{{url}} | +{{lastupdate_s}} | +
+
+ {{pubkey}}+ |
+
{{lang_version}} | +{{lang_releaseDate}} | +{{lang_title}} | ++ | + |
---|---|---|---|---|
+ + {{versionid}} + + + | +{{dateline_s}} | +{{title}} | ++ {{^installed}} + {{^downloading}} + + {{/downloading}} + {{/installed}} + | ++ {{#orphan}} + {{lang_orphanedVersion}} + {{/orphan}} + | +
+ |