Skip to content

Commit 906adff

Browse files
lunnyGiteaBot
andauthored
Hide RSS icon when viewing a file not under a branch (#36135)
Fix #35855 Co-authored-by: Giteabot <[email protected]>
1 parent 4cbcb91 commit 906adff

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)