summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-04-26 18:54:40 +0800
committerGitHub <noreply@github.com>2022-04-26 13:54:40 +0300
commit03eba32bd91533f090a82b62bd9cffd9e448aaa7 (patch)
tree7625e4d079617e1d6364909a715ca1c213f4abad /templates
parentfef26c159c7f426d7f6331b31e6d4119e47a9188 (diff)
downloadgitea-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.tmpl3
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>