summaryrefslogtreecommitdiffstats
path: root/templates/repo
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2017-02-03 23:09:10 +0800
committerGitHub <noreply@github.com>2017-02-03 23:09:10 +0800
commit3e0525b47d2d84a251341950cb08da36f42663dd (patch)
treec3ca9207bccf61968eb2cbab99bc2f06b1235e87 /templates/repo
parent68bdaf0a6b712b522dd465f72a32195f410134a3 (diff)
downloadgitea-3e0525b47d2d84a251341950cb08da36f42663dd.tar.gz
gitea-3e0525b47d2d84a251341950cb08da36f42663dd.zip
Track assignee for issue (#808)
* track assignee for issue * fix lint * use getUserByID instead Get
Diffstat (limited to 'templates/repo')
-rw-r--r--templates/repo/issue/view_content.tmpl13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index 39e0587d94..17263cf3fd 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -162,6 +162,19 @@
<span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.Name}}</a>
{{if gt .OldMilestoneID 0}}{{if gt .MilestoneID 0}}{{$.i18n.Tr "repo.issues.change_milestone_at" .OldMilestone.Name .Milestone.Name $createdStr | Safe}}{{else}}{{$.i18n.Tr "repo.issues.remove_milestone_at" .OldMilestone.Name $createdStr | Safe}}{{end}}{{else if gt .MilestoneID 0}}{{$.i18n.Tr "repo.issues.add_milestone_at" .Milestone.Name $createdStr | Safe}}{{end}}</span>
</div>
+ {{else if eq .Type 9}}
+ <div class="event">
+ <span class="octicon octicon-primitive-dot"></span>
+ {{if gt .AssigneeID 0}}{{if eq .Poster.ID .AssigneeID}}<a class="ui avatar image" href="{{.Poster.HomeLink}}">
+ <img src="{{.Poster.RelAvatarLink}}">
+ </a> <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.Name}}</a> {{$.i18n.Tr "repo.issues.self_assign_at" $createdStr | Safe}} </span>
+ {{else}}<a class="ui avatar image" href="{{.Assignee.HomeLink}}">
+ <img src="{{.Assignee.RelAvatarLink}}">
+ </a><span class="text grey"><a href="{{.Assignee.HomeLink}}">{{.Assignee.Name}}</a> {{$.i18n.Tr "repo.issues.add_assignee_at" .Poster.Name $createdStr | Safe}} </span>{{end}}{{else if gt .OldAssigneeID 0}}
+ <a class="ui avatar image" href="{{.Poster.HomeLink}}">
+ <img src="{{.Poster.RelAvatarLink}}">
+ </a> <span class="text grey"><a href="{{.Poster.HomeLink}}">{{.Poster.Name}}</a> {{$.i18n.Tr "repo.issues.remove_assignee_at" $createdStr | Safe}} </span>{{end}}
+ </div>
{{end}}
{{end}}