Skip to content

Commit 1bce5ce

Browse files
committed
Move button to the end
1 parent a2fd110 commit 1bce5ce

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

templates/repo/view_file.tmpl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,6 @@
4646
{{end}}
4747
{{if not .ReadmeInList}}
4848
<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"}}"
50-
{{if or (.IsMarkup) (.IsRenderedHTML) (not .IsTextSource)}}
51-
disabled
52-
{{end}}
53-
>
54-
{{svg "octicon-copy" 14}}
55-
</button>
5649
<a class="ui mini basic button" href="{{$.RawFileLink}}">{{.locale.Tr "repo.file_raw"}}</a>
5750
{{if not .IsViewCommit}}
5851
<a class="ui mini basic button" href="{{.RepoLink}}/src/commit/{{PathEscape .CommitID}}/{{PathEscapeSegments .TreePath}}">{{.locale.Tr "repo.file_permalink"}}</a>
@@ -65,6 +58,13 @@
6558
<a class="ui mini basic button unescape-button" style="display: none;">{{.locale.Tr "repo.unescape_control_characters"}}</a>
6659
<a class="ui mini basic button escape-button">{{.locale.Tr "repo.escape_control_characters"}}</a>
6760
{{end}}
61+
<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"}}"
62+
{{if or (.IsMarkup) (.IsRenderedHTML) (not .IsTextSource)}}
63+
disabled
64+
{{end}}
65+
>
66+
{{svg "octicon-copy" 14}}
67+
</button>
6868
</div>
6969
<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>
7070
{{if .Repository.CanEnableEditor}}

0 commit comments

Comments
 (0)