Browse Source

Hide RSS icon when viewing a file not under a branch (#36135)

Fix #35855

Co-authored-by: Giteabot <teabot@gitea.io>
pull/34433/merge
Lunny Xiao 5 days ago committed by GitHub
parent
commit
906adff0c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      templates/repo/view_file.tmpl

2
templates/repo/view_file.tmpl

@ -62,7 +62,7 @@ @@ -62,7 +62,7 @@
{{if not .IsDisplayingSource}}data-raw-file-link="{{$.RawFileLink}}"{{end}}
data-tooltip-content="{{if .CanCopyContent}}{{ctx.Locale.Tr "copy_content"}}{{else}}{{ctx.Locale.Tr "copy_type_unsupported"}}{{end}}"
>{{svg "octicon-copy"}}</a>
{{if .EnableFeed}}
{{if and .EnableFeed .RefFullName.IsBranch}}
<a class="btn-octicon" href="{{$.RepoLink}}/rss/{{$.RefTypeNameSubURL}}/{{PathEscapeSegments .TreePath}}" data-tooltip-content="{{ctx.Locale.Tr "rss_feed"}}">
{{svg "octicon-rss"}}
</a>

Loading…
Cancel
Save