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 4fd9eba commit a2fd110Copy full SHA for a2fd110
templates/repo/view_file.tmpl
@@ -46,7 +46,11 @@
46
{{end}}
47
{{if not .ReadmeInList}}
48
<div class="ui buttons mr-2">
49
- <button class="ui mini basic button small compact tooltip copy-content" id="clipboard-btn" data-content="{{.locale.Tr "copy_content"}}" aria-label="{{.locale.Tr "copy_content"}}">
+ <button class="ui mini basic button small compact tooltip copy-content" id="clipboard-btn" data-content="{{.locale.Tr "copy_content"}}" aria-label="{{.locale.Tr "copy_content"}}"
50
+ {{if or (.IsMarkup) (.IsRenderedHTML) (not .IsTextSource)}}
51
+ disabled
52
+ {{end}}
53
+ >
54
{{svg "octicon-copy" 14}}
55
</button>
56
<a class="ui mini basic button" href="{{$.RawFileLink}}">{{.locale.Tr "repo.file_raw"}}</a>
0 commit comments