summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorReo <112817228+reopt999@users.noreply.github.com>2022-12-22 04:06:26 +0700
committerGitHub <noreply@github.com>2022-12-21 15:06:26 -0600
commit48d71b7d6b0ddefdc1db76d5b5f3b3eabc4ae9e4 (patch)
tree98399f876a26694162178f4dd6deef6deaff4eb9 /templates
parent9914b21493784793fb4a3660369befb98a9bd073 (diff)
downloadgitea-48d71b7d6b0ddefdc1db76d5b5f3b3eabc4ae9e4.tar.gz
gitea-48d71b7d6b0ddefdc1db76d5b5f3b3eabc4ae9e4.zip
Add Feed for Releases and Tags (#21696)
Fixes #19091 Add Feed for Releases and Tags, can be accessed through `reponame/releases.rss`, `reponame/releases.atom`, `reponame/tags.rss`, and `reponame/tags.atom` Signed-off-by: Reo <reo_999@proton.me>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/release/list.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/repo/release/list.tmpl b/templates/repo/release/list.tmpl
index f8c54bf7f6..9f4104bec5 100644
--- a/templates/repo/release/list.tmpl
+++ b/templates/repo/release/list.tmpl
@@ -11,6 +11,9 @@
<a class="{{if .PageIsTagList}}active {{end}}item" href="{{.RepoLink}}/tags">{{.locale.Tr "repo.release.tags"}}</a>
{{end}}
</h2>
+ {{if .EnableFeed}}
+ <a href="{{.RepoLink}}/{{if .PageIsTagList}}tags{{else}}releases{{end}}.rss"><i class="ui grey icon tooltip ml-3" data-content="{{.locale.Tr "rss_feed"}}" data-position="top center">{{svg "octicon-rss" 18}}</i></a>
+ {{end}}
{{if (and .CanCreateRelease (not .PageIsTagList))}}
<a class="ui right small green button" href="{{$.RepoLink}}/releases/new">
{{.locale.Tr "repo.release.new_release"}}