diff options
author | Max Magorsch <arzano@gentoo.org> | 2020-09-09 14:41:35 +0200 |
---|---|---|
committer | Max Magorsch <arzano@gentoo.org> | 2020-09-09 14:41:35 +0200 |
commit | 527c1e69e674388acf16cefb423f9b8baad84a67 (patch) | |
tree | 19e38e675138dea536bc9f2e3aa3f31d3c4b3a80 /web | |
parent | Handle empty restricts correctly (diff) | |
download | soko-527c1e69e674388acf16cefb423f9b8baad84a67.tar.gz soko-527c1e69e674388acf16cefb423f9b8baad84a67.tar.bz2 soko-527c1e69e674388acf16cefb423f9b8baad84a67.zip |
Add links to upstream remotes
Thanks to sbraz for the suggestion.
Closes: https://bugs.gentoo.org/657018
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r-- | web/templates/packages/metadata.tmpl | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/web/templates/packages/metadata.tmpl b/web/templates/packages/metadata.tmpl index bd13395..78b3128 100644 --- a/web/templates/packages/metadata.tmpl +++ b/web/templates/packages/metadata.tmpl @@ -20,6 +20,26 @@ </li> {{end}} + {{ if .Package.Upstream }} + <li class="kk-metadata-item list-group-item"> + <div class="row"> + <div class="col-xs-12 col-md-3 kk-metadata-key"> + <span class="fa fa-fw fa-code-fork"></span> + Upstream + </div> + <div class="col-xs-12 col-md-9"> + {{range $k, $v := .Package.Upstream}} + {{ $link := RemoteIdLink . }} + {{if not (eq $link "")}} + <a href="{{ $link}}">{{ $link }}</a> + {{if not (eq $k (len $.Package.Upstream))}}<br/>{{end}} + {{end}} + {{end}} + </div> + </div> + </li> + {{end}} + {{ if .Package.Longdescription }} <li class="kk-metadata-item list-group-item"> <div class="row"> |