diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2019-08-28 10:23:18 +0800 |
---|---|---|
committer | techknowlogick <techknowlogick@gitea.io> | 2019-08-27 22:23:18 -0400 |
commit | 5616356a0bfce4dca9bf8b94f3a9ff7339fb2e11 (patch) | |
tree | b13860ffe8298ef230a04d5b793c01910c9cb444 /templates/repo/blame.tmpl | |
parent | 9a5c6f3da400e62fd173b2dcdfc818a6e6f38c59 (diff) | |
download | gitea-5616356a0bfce4dca9bf8b94f3a9ff7339fb2e11.tar.gz gitea-5616356a0bfce4dca9bf8b94f3a9ff7339fb2e11.zip |
keep blame view buttons sequence consistent with normal view when view a file (#8007)
Diffstat (limited to 'templates/repo/blame.tmpl')
-rw-r--r-- | templates/repo/blame.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/blame.tmpl b/templates/repo/blame.tmpl index e42366fd6e..483f8d38eb 100644 --- a/templates/repo/blame.tmpl +++ b/templates/repo/blame.tmpl @@ -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}} |