Skip to content

Commit 432e128

Browse files
GiteaBotlunny
andauthored
Hide RSS icon when viewing a file not under a branch (#36135) (#36141)
Backport #36135 by @lunny Fix #35855 Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
1 parent 8d6442a commit 432e128

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/repo/view_file.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
{{if not .IsDisplayingSource}}data-raw-file-link="{{$.RawFileLink}}"{{end}}
6363
data-tooltip-content="{{if .CanCopyContent}}{{ctx.Locale.Tr "copy_content"}}{{else}}{{ctx.Locale.Tr "copy_type_unsupported"}}{{end}}"
6464
>{{svg "octicon-copy"}}</a>
65-
{{if .EnableFeed}}
65+
{{if and .EnableFeed .RefFullName.IsBranch}}
6666
<a class="btn-octicon" href="{{$.RepoLink}}/rss/{{$.RefTypeNameSubURL}}/{{PathEscapeSegments .TreePath}}" data-tooltip-content="{{ctx.Locale.Tr "rss_feed"}}">
6767
{{svg "octicon-rss"}}
6868
</a>

0 commit comments

Comments
 (0)