summaryrefslogtreecommitdiffstats
path: root/templates/repo/commits_table.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/commits_table.tmpl
parentMerge pull request #60 from andreynering/gitea/issue-pr-number-on-title (diff)
downloadforgejo-17f9ab4ff8ceb890bc0456672a079698e32785b3.tar.xz
forgejo-17f9ab4ff8ceb890bc0456672a079698e32785b3.zip
Use user fullname if resolved
Diffstat (limited to 'templates/repo/commits_table.tmpl')
-rw-r--r--templates/repo/commits_table.tmpl6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/repo/commits_table.tmpl b/templates/repo/commits_table.tmpl
index 03e8591f68..4956acd07e 100644
--- a/templates/repo/commits_table.tmpl
+++ b/templates/repo/commits_table.tmpl
@@ -30,7 +30,11 @@
<tr>
<td class="author">
{{if .User}}
- <img class="ui avatar image" src="{{.User.RelAvatarLink}}" alt=""/>&nbsp;&nbsp;<a href="{{AppSubUrl}}/{{.User.Name}}">{{.Author.Name}}</a>
+ {{if .User.FullName}}
+ <img class="ui avatar image" src="{{.User.RelAvatarLink}}" alt=""/>&nbsp;&nbsp;<a href="{{AppSubUrl}}/{{.User.Name}}">{{.User.FullName}}</a>
+ {{else}}
+ <img class="ui avatar image" src="{{.User.RelAvatarLink}}" alt=""/>&nbsp;&nbsp;<a href="{{AppSubUrl}}/{{.User.Name}}">{{.Author.Name}}</a>
+ {{end}}
{{else}}
<img class="ui avatar image" src="{{AvatarLink .Author.Email}}" alt=""/>&nbsp;&nbsp;{{.Author.Name}}
{{end}}