aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-08-20 23:03:39 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2023-08-20 23:03:39 +0300
commitfb6538dbb749147804fd0f948910abf054b00fbe (patch)
tree275a3e2d139ec6ce5983bd45b696ec30da39c457 /web
parentapp/package: linkable bug for lower bug literal (diff)
downloadsoko-fb6538dbb749147804fd0f948910abf054b00fbe.tar.gz
soko-fb6538dbb749147804fd0f948910abf054b00fbe.tar.bz2
soko-fb6538dbb749147804fd0f948910abf054b00fbe.zip
packages/changelog: add RSS feed link
Resolves: https://github.com/gentoo/soko/issues/10 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'web')
-rw-r--r--web/templates/packages/changelog/changelog.tmpl2
-rw-r--r--web/templates/packages/components/changelog.tmpl12
2 files changed, 9 insertions, 5 deletions
diff --git a/web/templates/packages/changelog/changelog.tmpl b/web/templates/packages/changelog/changelog.tmpl
index c9c5b13..738c554 100644
--- a/web/templates/packages/changelog/changelog.tmpl
+++ b/web/templates/packages/changelog/changelog.tmpl
@@ -27,7 +27,7 @@
<div class="col-md-12">
{{$commit := .}}
{{range $key, $value := .ChangedFiles.Added }}
- {{-if gt $key 100 -}} {{- break -}}
+ {{- if gt $key 100 -}} {{- break -}}
{{ if contains .Path (print $.Atom "/")}}
<style>
.kk-added-file-badge {
diff --git a/web/templates/packages/components/changelog.tmpl b/web/templates/packages/components/changelog.tmpl
index 3359fb1..b63425d 100644
--- a/web/templates/packages/components/changelog.tmpl
+++ b/web/templates/packages/components/changelog.tmpl
@@ -1,9 +1,13 @@
{{define "changelog"}}
-
{{ if .Package.Commits }}
-
-
- <h3>Latest Commits</h3>
+ <span class="d-flex justify-content-between">
+ <h3>Latest Commits</h3>
+ <span>
+ <a href="https://gitweb.gentoo.org/repo/gentoo.git/atom/{{.Package.Atom}}?h=master" target="_blank">
+ <span class="fa fa-fw fa-rss text-dark"></span> RSS Feed
+ </a>
+ </span>
+ </span>
<ul class="timeline">
<li>
<span class="text-muted">Commits on {{(index .Package.Commits 0).CommitterDate.Format "2006-01-02"}}</span>