aboutsummaryrefslogtreecommitdiffstats
path: root/templates/user/dashboard/issues.tmpl
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-05-08 10:41:35 +0200
committerLauris BH <lauris@nix.lv>2019-05-08 11:41:35 +0300
commit4508380cf7937aef0bf6f99fe3eefb6c530e38e3 (patch)
tree28d832a36e5aced26dce671591c58a1b1a00f22e /templates/user/dashboard/issues.tmpl
parenta84f10ad1afb8b3dcfa75093891d85f6f163715e (diff)
downloadgitea-4508380cf7937aef0bf6f99fe3eefb6c530e38e3.tar.gz
gitea-4508380cf7937aef0bf6f99fe3eefb6c530e38e3.zip
Show full name if DefaultShowFullName setting activated (#6710)
Adds a new key DEFAULT_SHOW_FULL_NAME (default false) to the [ui] section. If enabled the full name will be shown (unless it's empty, then the default username will be used)
Diffstat (limited to 'templates/user/dashboard/issues.tmpl')
-rw-r--r--templates/user/dashboard/issues.tmpl7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/user/dashboard/issues.tmpl b/templates/user/dashboard/issues.tmpl
index 3273319098..b69509d799 100644
--- a/templates/user/dashboard/issues.tmpl
+++ b/templates/user/dashboard/issues.tmpl
@@ -61,6 +61,7 @@
<div class="issue list">
{{range .Issues}}
+
{{ $timeStr:= TimeSinceUnix .CreatedUnix $.Lang }}
<li class="item">
<div class="ui label">{{if not $.RepoID}}{{.Repo.FullName}}{{end}}#{{.Index}}</div>
@@ -93,12 +94,12 @@
<p class="desc">
{{if gt .Poster.ID 0}}
- {{$.i18n.Tr .GetLastEventLabel $timeStr .Poster.HomeLink .Poster.Name | Safe}}
+ {{$.i18n.Tr .GetLastEventLabel $timeStr .Poster.HomeLink (.Poster.GetDisplayName|Escape) | Safe}}
{{else}}
- {{$.i18n.Tr .GetLastEventLabelFake $timeStr .Poster.Name | Safe}}
+ {{$.i18n.Tr .GetLastEventLabelFake $timeStr (.Poster.GetDisplayName|Escape) | Safe}}
{{end}}
{{if .Assignee}}
- <a class="ui right assignee poping up" href="{{.Assignee.HomeLink}}" data-content="{{.Assignee.Name}}" data-variation="inverted" data-position="left center">
+ <a class="ui right assignee poping up" href="{{.Assignee.HomeLink}}" data-content="{{.Assignee.GetDisplayName}}" data-variation="inverted" data-position="left center">
<img class="ui avatar image" src="{{.Assignee.RelAvatarLink}}">
</a>
{{end}}