We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cbcb91 commit 906adffCopy full SHA for 906adff
templates/repo/view_file.tmpl
@@ -62,7 +62,7 @@
62
{{if not .IsDisplayingSource}}data-raw-file-link="{{$.RawFileLink}}"{{end}}
63
data-tooltip-content="{{if .CanCopyContent}}{{ctx.Locale.Tr "copy_content"}}{{else}}{{ctx.Locale.Tr "copy_type_unsupported"}}{{end}}"
64
>{{svg "octicon-copy"}}</a>
65
- {{if .EnableFeed}}
+ {{if and .EnableFeed .RefFullName.IsBranch}}
66
<a class="btn-octicon" href="{{$.RepoLink}}/rss/{{$.RefTypeNameSubURL}}/{{PathEscapeSegments .TreePath}}" data-tooltip-content="{{ctx.Locale.Tr "rss_feed"}}">
67
{{svg "octicon-rss"}}
68
</a>
0 commit comments