{{TimeSince .Created $.Lang}}{{end}} {{$.i18n.Tr "repo.release.ahead" .NumCommitsBehind .Target | Str2html}}
{{if .Created}}From 68b231bd89ab4bf2061a4f83dba67e3e901f2e45 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Fri, 24 Feb 2017 12:43:49 -0500 Subject: [PATCH] template: use DisplayName of users when possible (#4187) --- templates/repo/issue/list.tmpl | 6 +++--- templates/repo/issue/view_content.tmpl | 12 ++++++------ templates/repo/release/list.tmpl | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/templates/repo/issue/list.tmpl b/templates/repo/issue/list.tmpl index 57dd8f4cd..e416affff 100644 --- a/templates/repo/issue/list.tmpl +++ b/templates/repo/issue/list.tmpl @@ -61,7 +61,7 @@
@@ -113,14 +113,14 @@ {{end}}
- {{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.HomeLink .Poster.Name | Safe}}
+ {{$.i18n.Tr "repo.issues.opened_by" $timeStr .Poster.HomeLink .Poster.DisplayName | Safe}}
{{if .Milestone}}
{{.Milestone.Name | Sanitize}}
{{end}}
{{if .Assignee}}
-
+
{{end}}
diff --git a/templates/repo/issue/view_content.tmpl b/templates/repo/issue/view_content.tmpl
index 1b54718bb..07acc541d 100644
--- a/templates/repo/issue/view_content.tmpl
+++ b/templates/repo/issue/view_content.tmpl
@@ -17,7 +17,7 @@
{{TimeSince .Created $.Lang}}{{end}} {{$.i18n.Tr "repo.release.ahead" .NumCommitsBehind .Target | Str2html}}
{{if .Created}}