Skip to content

Commit 67c91e1

Browse files
webjoellunny
authored andcommitted
Order file actions equal to GitHub (#6706)
1 parent 45fa5cc commit 67c91e1

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
@@ -18,14 +18,14 @@
1818
{{if not .ReadmeInList}}
1919
<div class="ui right file-actions">
2020
<div class="ui buttons">
21+
<a class="ui button" href="{{EscapePound $.RawFileLink}}">{{.i18n.Tr "repo.file_raw"}}</a>
2122
{{if not .IsViewCommit}}
2223
<a class="ui button" href="{{.RepoLink}}/src/commit/{{.CommitID}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_permalink"}}</a>
2324
{{end}}
2425
{{if .IsTextFile}}
2526
<a class="ui button" href="{{.RepoLink}}/blame/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.blame"}}</a>
2627
{{end}}
2728
<a class="ui button" href="{{.RepoLink}}/commits/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_history"}}</a>
28-
<a class="ui button" href="{{EscapePound $.RawFileLink}}">{{.i18n.Tr "repo.file_raw"}}</a>
2929
</div>
3030
{{if .Repository.CanEnableEditor}}
3131
{{if .CanEditFile}}

0 commit comments

Comments
 (0)