From 817b48ed1e083b5291afd339bda573cba14bba8d Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 14 Aug 2015 02:43:40 +0800 Subject: Show owner/poster tags of comments and fix #1312 --- templates/repo/issue/view_content.tmpl | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) (limited to 'templates/repo/issue') diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl index 564b937fa9..e6e4e1a720 100644 --- a/templates/repo/issue/view_content.tmpl +++ b/templates/repo/issue/view_content.tmpl @@ -22,8 +22,8 @@
- - + +
@@ -63,6 +63,17 @@
{{.Poster.Name}} {{$.i18n.Tr "repo.issues.commented_at" .HashTag $createdStr | Safe}}
+ {{if gt .ShowTag 0}} +
+ {{if eq .ShowTag 1}} + {{$.i18n.Tr "repo.issues.poster"}} + {{else if eq .ShowTag 2}} + {{$.i18n.Tr "repo.issues.admin"}} + {{else if eq .ShowTag 3}} + {{$.i18n.Tr "repo.issues.owner"}} + {{end}} +
+ {{end}}
@@ -89,7 +100,7 @@ - {{.Poster.Name}} {{$.i18n.Tr "repo.issues.closed_at" .EventTag $createdStr | Safe}} + {{.Poster.Name}} {{$.i18n.Tr "repo.issues.reopened_at" .EventTag $createdStr | Safe}}
{{else if eq .Type 2}}
@@ -103,6 +114,7 @@ {{end}} + {{if .IsSigned}}
+ {{else}} +
+ {{.i18n.Tr "repo.issues.sign_up_for_free"}} + {{.i18n.Tr "repo.issues.sign_in_require_desc" "/user/login" | Safe}} +
+ {{end}}
-- cgit v1.2.3