diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-04-26 18:54:40 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-26 13:54:40 +0300 |
commit | 03eba32bd91533f090a82b62bd9cffd9e448aaa7 (patch) | |
tree | 7625e4d079617e1d6364909a715ca1c213f4abad /templates | |
parent | fef26c159c7f426d7f6331b31e6d4119e47a9188 (diff) | |
download | gitea-03eba32bd91533f090a82b62bd9cffd9e448aaa7.tar.gz gitea-03eba32bd91533f090a82b62bd9cffd9e448aaa7.zip |
Add a new menu in file view to open blame view and fix blame view select range bug (#19500)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/view_file.tmpl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/repo/view_file.tmpl b/templates/repo/view_file.tmpl index 9e1d83b836..c5efd3d2d4 100644 --- a/templates/repo/view_file.tmpl +++ b/templates/repo/view_file.tmpl @@ -129,6 +129,9 @@ </div> {{end}} <div class="ui link list"> + <a class="item view_git_blame" href="{{.Repository.HTMLURL}}/blame/commit/{{PathEscape .CommitID}}/{{PathEscapeSegments .TreePath}}">{{.i18n.Tr "repo.view_git_blame"}}</a> + </div> + <div class="ui link list"> <a data-clipboard-text="{{.Repository.HTMLURL}}/src/commit/{{PathEscape .CommitID}}/{{PathEscapeSegments .TreePath}}" class="item copy-line-permalink">{{.i18n.Tr "repo.file_copy_permalink"}}</a> </div> </div> |