diff options
author | Alec Warner <antarus@gentoo.org> | 2023-02-09 08:22:02 -0800 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2023-02-09 08:22:02 -0800 |
commit | a3df2a432d2d204747778ca6f0b2d077fb619589 (patch) | |
tree | b3b261a30d9f97f077b8666c7319e66e05466c3b /web | |
parent | Run go vet, fix any errors. (diff) | |
download | soko-a3df2a432d2d204747778ca6f0b2d077fb619589.tar.gz soko-a3df2a432d2d204747778ca6f0b2d077fb619589.tar.bz2 soko-a3df2a432d2d204747778ca6f0b2d077fb619589.zip |
Fix stable and testing mis-match.
From: https://github.com/gentoo/soko/pull/9/files
Thanks to Kangie for the fix.
Signed-off-by: Alec Warner <antarus@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/arches/changedVersionRows.tmpl | 4 | ||||
-rw-r--r-- | web/templates/packages/changedVersionRow.tmpl | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/web/templates/arches/changedVersionRows.tmpl b/web/templates/arches/changedVersionRows.tmpl index d27def4..c121117 100644 --- a/web/templates/arches/changedVersionRows.tmpl +++ b/web/templates/arches/changedVersionRows.tmpl @@ -60,9 +60,9 @@ <p> {{ range $.UserPreferences.Arches.Visible }} {{if contains (print " " $version.Keywords " ") (print " " . " ")}} - <span class="label kk-keyword-stable" title="{{$version.Version}} is testing on {{.}}">{{.}}</span> + <span class="label kk-keyword-stable" title="{{$version.Version}} is stable on {{.}}">{{.}}</span> {{else if contains (print " " $version.Keywords " ") (print "~" . " ")}} - <span class="label kk-keyword-testing" title="{{$version}} is stable on {{.}}">~{{.}}</span> + <span class="label kk-keyword-testing" title="{{$version}} is testing on {{.}}">~{{.}}</span> {{else}} <span class="label kk-keyword-unknown" title="{{$version.Version}} is unknown on {{.}}">?{{.}}</span> {{end}} diff --git a/web/templates/packages/changedVersionRow.tmpl b/web/templates/packages/changedVersionRow.tmpl index 8f188cf..dc6e97f 100644 --- a/web/templates/packages/changedVersionRow.tmpl +++ b/web/templates/packages/changedVersionRow.tmpl @@ -60,9 +60,9 @@ {{ $arches := mkSlice "amd64" "x86" "alpha" "arm" "arm64" "hppa" "ia64" "ppc" "ppc64" "riscv" "sparc" }} {{ range $arches }} {{if contains (print " " $.Keywords " ") (print " " . " ")}} - <span class="label kk-keyword-stable" title="{{$.Version}} is testing on {{.}}">{{.}}</span> + <span class="label kk-keyword-stable" title="{{$.Version}} is stable on {{.}}">{{.}}</span> {{else if contains (print " " $.Keywords " ") (print "~" . " ")}} - <span class="label kk-keyword-testing" title="{{$.Version}} is stable on {{.}}">~{{.}}</span> + <span class="label kk-keyword-testing" title="{{$.Version}} is testing on {{.}}">~{{.}}</span> {{else}} <span class="label kk-keyword-unknown" title="{{$.Version}} is unknown on {{.}}">?{{.}}</span> {{end}} |