diff options
author | Arthur Zamarin <arthurzam@gentoo.org> | 2023-04-15 12:16:17 +0300 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2023-04-15 12:16:17 +0300 |
commit | 0f6b069756de427d4fc5c2bfeb6bbb4723527746 (patch) | |
tree | cab69f3c5077f9bf8112c09ca572a98f3514cdd1 /web | |
parent | app/stabilization: add exported files of stabilization list (diff) | |
download | soko-0f6b069756de427d4fc5c2bfeb6bbb4723527746.tar.gz soko-0f6b069756de427d4fc5c2bfeb6bbb4723527746.tar.bz2 soko-0f6b069756de427d4fc5c2bfeb6bbb4723527746.zip |
app/stabilization: add exported files to UI
Shown as a small download button on the right of the title "Stable
Requests" under the Stabilization tab, clicking on it will show menu
listing the 3 types.
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/categories/components/stabilization.tmpl | 14 | ||||
-rw-r--r-- | web/templates/maintainer/components/stabilization.tmpl | 14 |
2 files changed, 26 insertions, 2 deletions
diff --git a/web/templates/categories/components/stabilization.tmpl b/web/templates/categories/components/stabilization.tmpl index 9e4f75c..4dcb790 100644 --- a/web/templates/categories/components/stabilization.tmpl +++ b/web/templates/categories/components/stabilization.tmpl @@ -1,7 +1,19 @@ {{- define "stabilization" -}} <div class="row"> <div class="col-md-9"> - <h3>Stable Requests</h3> + <span class="d-flex justify-content-between"> + <h3>Stable Requests</h3> + <span> + <button type="button" class="kk-btn-xs btn btn-outline-secondary" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> + <span class="fa fa-fw fa-download"></span> + </button> + <span class="dropdown-menu dropdown-menu-right"> + <a class="dropdown-item" href="./stabilization.list" target="_blank">Plain Text</a> + <a class="dropdown-item" href="./stabilization.json" target="_blank">JSON file</a> + <a class="dropdown-item" href="./stabilization.xml" target="_blank">XML file</a> + </span> + </span> + </span> {{- if gt .Category.PackagesInformation.StableRequests 0}} <ul class="timeline"> {{- range .Category.Packages -}} diff --git a/web/templates/maintainer/components/stabilization.tmpl b/web/templates/maintainer/components/stabilization.tmpl index 3703f5b..0488539 100644 --- a/web/templates/maintainer/components/stabilization.tmpl +++ b/web/templates/maintainer/components/stabilization.tmpl @@ -1,7 +1,19 @@ {{define "stabilization"}} <div class="row"> <div class="col-md-9"> - <h3>Stable Requests</h3> + <span class="d-flex justify-content-between"> + <h3>Stable Requests</h3> + <span> + <button type="button" class="kk-btn-xs btn btn-outline-secondary" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> + <span class="fa fa-fw fa-download"></span> + </button> + <span class="dropdown-menu dropdown-menu-right"> + <a class="dropdown-item" href="./stabilization.list" target="_blank">Plain Text</a> + <a class="dropdown-item" href="./stabilization.json" target="_blank">JSON file</a> + <a class="dropdown-item" href="./stabilization.xml" target="_blank">XML file</a> + </span> + </span> + </span> <ul class="timeline"> {{- $stable_requests := 0 -}} {{- range .Packages -}} |