aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/view_file.tmpl
diff options
context:
space:
mode:
authorJoel da Rosa <webjoel@users.noreply.github.com>2019-04-24 01:53:57 -0300
committerLunny Xiao <xiaolunwen@gmail.com>2019-04-24 12:53:57 +0800
commit67c91e1aa1e0e2a8fa1b01600b06f9af75501903 (patch)
treed8e61467260478c5b9b3a856a4bc82e4854192ad /templates/repo/view_file.tmpl
parent45fa5cc1be0e691e4af9c7182ca2513dc36eb33a (diff)
downloadgitea-67c91e1aa1e0e2a8fa1b01600b06f9af75501903.tar.gz
gitea-67c91e1aa1e0e2a8fa1b01600b06f9af75501903.zip
Order file actions equal to GitHub (#6706)
Diffstat (limited to 'templates/repo/view_file.tmpl')
-rw-r--r--templates/repo/view_file.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl
index a6d47b15d6..6445ee7b9e 100644
--- a/templates/repo/view_file.tmpl
+++ b/templates/repo/view_file.tmpl
@@ -18,6 +18,7 @@
{{if not .ReadmeInList}}
<div class="ui right file-actions">
<div class="ui buttons">
+ <a class="ui button" href="{{EscapePound $.RawFileLink}}">{{.i18n.Tr "repo.file_raw"}}</a>
{{if not .IsViewCommit}}
<a class="ui button" href="{{.RepoLink}}/src/commit/{{.CommitID}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_permalink"}}</a>
{{end}}
@@ -25,7 +26,6 @@
<a class="ui button" href="{{.RepoLink}}/blame/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.blame"}}</a>
{{end}}
<a class="ui button" href="{{.RepoLink}}/commits/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.file_history"}}</a>
- <a class="ui button" href="{{EscapePound $.RawFileLink}}">{{.i18n.Tr "repo.file_raw"}}</a>
</div>
{{if .Repository.CanEnableEditor}}
{{if .CanEditFile}}