Skip to content

Commit a6bf4ff

Browse files
committed
Update templates/repo/view_file.tmpl
1 parent bd43820 commit a6bf4ff

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
@@ -38,7 +38,7 @@
3838
{{end}}
3939
</div>
4040
<a download href="{{$.RawFileLink}}"><span class="btn-octicon tooltip" data-content="{{.locale.Tr "repo.download_file"}}" data-position="bottom center">{{svg "octicon-download"}}</span></a>
41-
<a id="copy-content" class="btn-octicon{{if .CanCopyContent}} tooltip{{else}} disabled{{end}}"{{if or .IsImageFile (and .HasSourceRenderedToggle (not .IsDisplayingSource))}} data-link="{{$.RawFileLink}}"{{end}}{{if .CanCopyContent}} data-content="{{.locale.Tr "copy_content"}}" aria-label="{{.locale.Tr "copy_content"}}"{{end}}>{{svg "octicon-copy" 14}}</a>
41+
<a id="copy-content" class="btn-octicon {{if .CanCopyContent}}tooltip{{else}}disabled{{end}}"{{if or .IsImageFile (and .HasSourceRenderedToggle (not .IsDisplayingSource))}} data-link="{{$.RawFileLink}}"{{end}}{{if .CanCopyContent}} data-content="{{.locale.Tr "copy_content"}}" aria-label="{{.locale.Tr "copy_content"}}"{{end}}>{{svg "octicon-copy" 14}}</a>
4242
{{if .Repository.CanEnableEditor}}
4343
{{if .CanEditFile}}
4444
<a href="{{.RepoLink}}/_edit/{{PathEscapeSegments .BranchName}}/{{PathEscapeSegments .TreePath}}"><span class="btn-octicon tooltip" data-content="{{.EditFileTooltip}}" data-position="bottom center">{{svg "octicon-pencil"}}</span></a>

0 commit comments

Comments
 (0)