]> source.dussan.org Git - gitea.git/commitdiff
keep blame view buttons sequence consistent with normal view when view a file (#8007)
authorLunny Xiao <xiaolunwen@gmail.com>
Wed, 28 Aug 2019 02:23:18 +0000 (10:23 +0800)
committertechknowlogick <techknowlogick@gitea.io>
Wed, 28 Aug 2019 02:23:18 +0000 (22:23 -0400)
templates/repo/blame.tmpl

index e42366fd6e9a6cc3c1c9125d55fd4307093500a6..483f8d38eb8fe1a03bef00d0ed737e3133dddc88 100644 (file)
@@ -9,12 +9,12 @@
                        <div class="eight wide right aligned column">
                 <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}}
                         <a class="ui button" href="{{.RepoLink}}/src/{{EscapePound .BranchNameSubURL}}/{{EscapePound .TreePath}}">{{.i18n.Tr "repo.normal_view"}}</a>
                         <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}}