summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-02-08 03:09:14 +0000
committerGitHub <noreply@github.com>2021-02-08 11:09:14 +0800
commit378acc9d966554299e4a7dbe15e6e41026963653 (patch)
treecfe875029a9c6cb35939fbd0a64ffdc965b2f9b7 /templates
parent98827e99f63178c43187e686ffc4bf03d9d18d36 (diff)
downloadgitea-378acc9d966554299e4a7dbe15e6e41026963653.tar.gz
gitea-378acc9d966554299e4a7dbe15e6e41026963653.zip
Use OldRef instead of CommitSHA for DeleteBranch comments (#14604)
Fix #14545 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/repo/issue/view_content/comments.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index abf5792a9e..63fe73857c 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -251,7 +251,7 @@
</a>
<span class="text grey">
<a class="author" href="{{.Poster.HomeLink}}">{{.Poster.GetDisplayName}}</a>
- {{$.i18n.Tr "repo.issues.delete_branch_at" (.CommitSHA|Escape) $createdStr | Safe}}
+ {{$.i18n.Tr "repo.issues.delete_branch_at" (.OldRef|Escape) $createdStr | Safe}}
</span>
</div>
{{else if eq .Type 12}}