From 95f2e2b57beedcdeb2b9623dc86e26f252fdd7bd Mon Sep 17 00:00:00 2001 From: kolaente Date: Wed, 9 May 2018 18:29:04 +0200 Subject: Multiple assignees (#3705) --- templates/repo/issue/view_content/comments.tmpl | 32 ++++++++++++++++++------- 1 file changed, 23 insertions(+), 9 deletions(-) (limited to 'templates/repo/issue/view_content/comments.tmpl') diff --git a/templates/repo/issue/view_content/comments.tmpl b/templates/repo/issue/view_content/comments.tmpl index b6d2c96bb5..dc266218bf 100644 --- a/templates/repo/issue/view_content/comments.tmpl +++ b/templates/repo/issue/view_content/comments.tmpl @@ -118,15 +118,29 @@ {{else if eq .Type 9}}
- {{if gt .AssigneeID 0}}{{if eq .Poster.ID .AssigneeID}} - - {{.Poster.Name}} {{$.i18n.Tr "repo.issues.self_assign_at" $createdStr | Safe}} - {{else}} - - {{.Assignee.Name}} {{$.i18n.Tr "repo.issues.add_assignee_at" .Poster.Name $createdStr | Safe}} {{end}}{{else if gt .OldAssigneeID 0}} - - - {{.Poster.Name}} {{$.i18n.Tr "repo.issues.remove_assignee_at" $createdStr | Safe}} {{end}} + {{if gt .AssigneeID 0}} + {{if .RemovedAssignee}} + + + + + {{.Assignee.Name}} + {{$.i18n.Tr "repo.issues.remove_assignee_at" $createdStr | Safe}} + + {{else}} + + + + + {{.Assignee.Name}} + {{if eq .Poster.ID .AssigneeID}} + {{$.i18n.Tr "repo.issues.self_assign_at" $createdStr | Safe}} + {{else}} + {{$.i18n.Tr "repo.issues.add_assignee_at" .Poster.Name $createdStr | Safe}} + {{end}} + + {{end}} + {{end}}
{{else if eq .Type 10}}
-- cgit v1.2.3