diff options
author | Xinyu Zhou <i@sourcehut.net> | 2022-11-21 13:14:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-21 13:14:58 +0800 |
commit | b4802b9b2eae044e35f022dc7116986e4762a944 (patch) | |
tree | 797be6fa1bff09a869c03344d4d01cb5710b9973 /templates/user | |
parent | 9380bb6d0c7fb8d2652d19a9aec87994a6e99f8c (diff) | |
download | gitea-b4802b9b2eae044e35f022dc7116986e4762a944.tar.gz gitea-b4802b9b2eae044e35f022dc7116986e4762a944.zip |
Allow disable RSS/Atom feed (#21622)
This patch provide a mechanism to disable RSS/Atom feed.
Signed-off-by: Xinyu Zhou <i@sourcehut.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de>
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/profile.tmpl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl index 3b776bc16d..70a49235ed 100644 --- a/templates/user/profile.tmpl +++ b/templates/user/profile.tmpl @@ -18,7 +18,9 @@ <div class="content word-break profile-avatar-name"> {{if .Owner.FullName}}<span class="header text center">{{.Owner.FullName}}</span>{{end}} <span class="username text center">{{.Owner.Name}}</span> - <a href="{{.Owner.HomeLink}}.rss"><i class="ui grey icon tooltip ml-3" data-content="{{.locale.Tr "rss_feed"}}" data-position="bottom center">{{svg "octicon-rss" 18}}</i></a> + {{if .EnableFeed}} + <a href="{{.Owner.HomeLink}}.rss"><i class="ui grey icon tooltip ml-3" data-content="{{.locale.Tr "rss_feed"}}" data-position="bottom center">{{svg "octicon-rss" 18}}</i></a> + {{end}} <div class="mt-3"> <a class="muted" href="{{.Owner.HomeLink}}?tab=followers">{{svg "octicon-person" 18 "mr-2"}}{{.Owner.NumFollowers}} {{.locale.Tr "user.followers"}}</a> ยท <a class="muted" href="{{.Owner.HomeLink}}?tab=following">{{.Owner.NumFollowing}} {{.locale.Tr "user.following"}}</a> </div> |