aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-04-04 20:41:16 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2023-04-04 20:41:16 +0300
commitf904b4d1e6563a6bdc909862978e580d122e3e9d (patch)
treedd3445d68fddd51df5492a553ce4c35b24fa48c4 /web
parentapp/maintainer: fix maintainer-needed page (diff)
downloadsoko-f904b4d1e6563a6bdc909862978e580d122e3e9d.tar.gz
soko-f904b4d1e6563a6bdc909862978e580d122e3e9d.tar.bz2
soko-f904b4d1e6563a6bdc909862978e580d122e3e9d.zip
app/categories: enable the Stabilization tab
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r--web/templates/categories/components/stabilization.tmpl42
-rw-r--r--web/templates/categories/show.tmpl2
2 files changed, 44 insertions, 0 deletions
diff --git a/web/templates/categories/components/stabilization.tmpl b/web/templates/categories/components/stabilization.tmpl
new file mode 100644
index 0000000..9e4f75c
--- /dev/null
+++ b/web/templates/categories/components/stabilization.tmpl
@@ -0,0 +1,42 @@
+{{- define "stabilization" -}}
+ <div class="row">
+ <div class="col-md-9">
+ <h3>Stable Requests</h3>
+ {{- if gt .Category.PackagesInformation.StableRequests 0}}
+ <ul class="timeline">
+ {{- range .Category.Packages -}}
+ {{- range .Versions -}}
+ {{- range .PkgCheckResults -}}
+ <li>
+ <ul class="list-group">
+ <li class="list-group-item">
+ <a href="/packages/{{.Category}}/{{.Package}}" class="text-dark"><strong>{{.Category}}/{{.Package}}-{{.Version}}</strong></a><br/>
+ <span class="kk-version kk-cell-sep-right text-muted">
+ {{- .Message -}}
+ </span>
+ </li>
+ </ul>
+ </li>
+ {{- end -}}
+ {{- end -}}
+ {{- end -}}
+ </ul>
+ {{- else -}}
+ <div class="text-center w-100"><i>- No Stable Requests found -</i></div>
+ {{- end }}
+ </div>
+ <div class="col-md-3 pt-4">
+ <h4>
+ <a class="collapseLink" style="color:#000000;" data-toggle="collapse" href="#collapseDescription" role="button" aria-expanded="false" aria-controls="collapseDescription">
+ Description
+ </a>
+ </h4>
+ <div class="collapse show" id="collapseDescription">
+ <span class="text-muted">
+ This page lists potential stabilization candidates. Please have a look at the <a href="https://wiki.gentoo.org/wiki/Stable_request">wiki page</a> for more information.
+ </span>
+ </div>
+ </div>
+ </div>
+{{end}}
+
diff --git a/web/templates/categories/show.tmpl b/web/templates/categories/show.tmpl
index 1a853bb..b3026a8 100644
--- a/web/templates/categories/show.tmpl
+++ b/web/templates/categories/show.tmpl
@@ -12,6 +12,8 @@
<div class="container mb-5 tab-pane fade show active" id="overview" role="tabpanel" aria-labelledby="overview-tab">
{{if eq .PageName "packages"}}
{{template "packages" .}}
+ {{else if eq .PageName "stabilization"}}
+ {{template "stabilization" .}}
{{else if eq .PageName "outdated"}}
{{template "outdated" .}}
{{else if eq .PageName "pull-requests"}}