summaryrefslogtreecommitdiffstats
path: root/templates/repo/issue
diff options
context:
space:
mode:
authorLanre Adelowo <adelowomailbox@gmail.com>2019-01-19 20:16:46 +0100
committerzeripath <art27@cantab.net>2019-01-19 19:16:46 +0000
commitc212c9846337f2d04796dfa69be006e882abeaca (patch)
tree2a6b1d07b7a34aa4b1ff3e09c23b311c56349473 /templates/repo/issue
parent905e63f5b545ff37e96d1ea8670cbe8f62a81277 (diff)
downloadgitea-c212c9846337f2d04796dfa69be006e882abeaca.tar.gz
gitea-c212c9846337f2d04796dfa69be006e882abeaca.zip
Fix wording when user is unassigned from an issue (#5769)
Previous Gitea would display that the user had unassigned themselves even if the actor was not the user. Fixes #4418
Diffstat (limited to 'templates/repo/issue')
-rw-r--r--templates/repo/issue/view_content/comments.tmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl
index 953aa4c2f0..facc3e2dab 100644
--- a/templates/repo/issue/view_content/comments.tmpl
+++ b/templates/repo/issue/view_content/comments.tmpl
@@ -124,7 +124,11 @@
</a>
<span class="text grey">
<a href="{{.Assignee.HomeLink}}">{{.Assignee.Name}}</a>
- {{$.i18n.Tr "repo.issues.remove_assignee_at" $createdStr | Safe}}
+ {{ if eq .Poster.ID .Assignee.ID }}
+ {{$.i18n.Tr "repo.issues.remove_self_assignment" $createdStr | Safe}}
+ {{ else }}
+ {{$.i18n.Tr "repo.issues.remove_assignee_at" .Poster.Name $createdStr | Safe}}
+ {{ end }}
</span>
{{else}}
<a class="ui avatar image" href="{{.Assignee.HomeLink}}">