summaryrefslogtreecommitdiffstats
path: root/templates/repo/view_list.tmpl
diff options
context:
space:
mode:
authorThibault Meyer <meyer.thibault@gmail.com>2016-10-29 18:04:56 +0200
committerSandro Santilli <strk@kbt.io>2016-11-04 08:13:14 +0100
commit17f9ab4ff8ceb890bc0456672a079698e32785b3 (patch)
tree1eaeca392910d2e33e53943686501c54cbe99546 /templates/repo/view_list.tmpl
parent5a8cb2dac1fb4877ab0a8b52fdf26d98848928da (diff)
downloadgitea-17f9ab4ff8ceb890bc0456672a079698e32785b3.tar.gz
gitea-17f9ab4ff8ceb890bc0456672a079698e32785b3.zip
Use user fullname if resolved
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r--templates/repo/view_list.tmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl
index 0881ce9938..f1cbf58a4a 100644
--- a/templates/repo/view_list.tmpl
+++ b/templates/repo/view_list.tmpl
@@ -4,7 +4,11 @@
<th class="four wide">
{{if .LatestCommitUser}}
<img class="ui avatar image img-12" src="{{.LatestCommitUser.RelAvatarLink}}" />
- <a href="{{AppSubUrl}}/{{.LatestCommitUser.Name}}"><strong>{{.LatestCommit.Author.Name}}</strong></a>
+ {{if .LatestCommitUser.FullName}}
+ <a href="{{AppSubUrl}}/{{.LatestCommitUser.Name}}"><strong>{{.LatestCommitUser.FullName}}</strong></a>
+ {{else}}
+ <a href="{{AppSubUrl}}/{{.LatestCommitUser.Name}}"><strong>{{.LatestCommit.Author.Name}}</strong></a>
+ {{end}}
{{else}}
<img class="ui avatar image img-12" src="{{AvatarLink .LatestCommit.Author.Email}}" />
<strong>{{.LatestCommit.Author.Name}}</strong>