aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2021-06-12 09:12:26 -0700
committerAlec Warner <antarus@gentoo.org>2021-06-12 09:12:26 -0700
commitc7b62296610da795ff86069bfea97274f1ea6e3d (patch)
tree24287a405c119fb9b1133465eb76bf0b877534b1
parentFix copyright (diff)
downloadsoko-master.tar.gz
soko-master.tar.bz2
soko-master.zip
Add riscv to arches.HEADmaster
Signed-off-by: Alec Warner <antarus@gentoo.org>
-rw-r--r--pkg/models/userpreferences.go4
-rw-r--r--web/templates/arches/index.tmpl11
-rw-r--r--web/templates/packages/changedVersionRow.tmpl2
3 files changed, 14 insertions, 3 deletions
diff --git a/pkg/models/userpreferences.go b/pkg/models/userpreferences.go
index 0e6cd19..09a9412 100644
--- a/pkg/models/userpreferences.go
+++ b/pkg/models/userpreferences.go
@@ -102,7 +102,7 @@ func GetDefaultUserPreferences() UserPreferences {
userPreferences.General.LandingPageLayout = "classic"
userPreferences.Packages.Overview.Layout = "minimal"
- userPreferences.Packages.Overview.Keywords = []string{"amd64", "x86", "alpha", "arm", "arm64", "hppa", "ia64", "ppc", "ppc64", "sparc"}
+ userPreferences.Packages.Overview.Keywords = []string{"amd64", "x86", "alpha", "arm", "arm64", "hppa", "ia64", "ppc", "ppc64", "riscv", "sparc"}
userPreferences.Packages.Overview.EAPI = "none"
userPreferences.Packages.Overview.ShowOutdated = true
userPreferences.Packages.Overview.MetadataFields = []string{"homepage", "upstream", "longdescription", "useflags", "license", "maintainers"}
@@ -126,7 +126,7 @@ func GetDefaultUserPreferences() UserPreferences {
userPreferences.Packages.Tabs.Visible = []string{"Overview", "Dependencies", "QA report", "Pull requests", "Bugs", "Security", "Changelog"}
- userPreferences.Arches.Visible = []string{"amd64", "x86", "alpha", "arm", "arm64", "hppa", "ia64", "ppc", "ppc64", "sparc"}
+ userPreferences.Arches.Visible = []string{"amd64", "x86", "alpha", "arm", "arm64", "hppa", "ia64", "ppc", "ppc64", "riscv", "sparc"}
userPreferences.Arches.DefaultArch = "amd64"
userPreferences.Arches.DefaultPage = "keyworded"
diff --git a/web/templates/arches/index.tmpl b/web/templates/arches/index.tmpl
index 340f33a..79aa5f5 100644
--- a/web/templates/arches/index.tmpl
+++ b/web/templates/arches/index.tmpl
@@ -108,6 +108,17 @@
</td>
</tr>
<tr>
+ <th class="kk-nobreak-cell">riscv</th>
+ <td>
+ <a href="/arches/riscv/keyworded"><span class="translation_missing" title="translation missing: en.keyworded_packages">Keyworded Packages</span></a>
+ <a title="Atom feed" href="/arches/riscv/keyworded.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a>
+ </td>
+ <td>
+ <a href="/arches/riscv/stable">Newly Stable Packages</a>
+ <a title="Atom feed" href="/arches/riscv/stable.atom" class="kk-feed-icon"><span class="fa fa-fw fa-rss-square"></span></a>
+ </td>
+ </tr>
+ <tr>
<th class="kk-nobreak-cell">sparc</th>
<td>
<a href="/arches/sparc/keyworded"><span class="translation_missing" title="translation missing: en.keyworded_packages">Keyworded Packages</span></a>
diff --git a/web/templates/packages/changedVersionRow.tmpl b/web/templates/packages/changedVersionRow.tmpl
index 22b27b9..8f188cf 100644
--- a/web/templates/packages/changedVersionRow.tmpl
+++ b/web/templates/packages/changedVersionRow.tmpl
@@ -57,7 +57,7 @@
<div class="kk-version-card">
<p class="mb-2"><strong>{{.Version}}</strong><span class="kk-slot"> : {{.Slot}}</span> {{if .Restricts}}<span class="badge badge-danger kk-restrict-label" title="The following features are restricted: {{range .Restricts}}{{.}} {{end}}">{{formatRestricts .Restricts}}</span>{{end}}</p>
<p>
- {{ $arches := mkSlice "amd64" "x86" "alpha" "arm" "arm64" "hppa" "ia64" "ppc" "ppc64" "sparc" }}
+ {{ $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>