diff options
author | Thibault Meyer <meyer.thibault@gmail.com> | 2016-10-29 18:04:56 +0200 |
---|---|---|
committer | Sandro Santilli <strk@kbt.io> | 2016-11-04 08:13:14 +0100 |
commit | 17f9ab4ff8ceb890bc0456672a079698e32785b3 (patch) | |
tree | 1eaeca392910d2e33e53943686501c54cbe99546 /templates/repo/commits_table.tmpl | |
parent | Merge pull request #60 from andreynering/gitea/issue-pr-number-on-title (diff) | |
download | forgejo-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.tmpl | 6 |
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=""/> <a href="{{AppSubUrl}}/{{.User.Name}}">{{.Author.Name}}</a> + {{if .User.FullName}} + <img class="ui avatar image" src="{{.User.RelAvatarLink}}" alt=""/> <a href="{{AppSubUrl}}/{{.User.Name}}">{{.User.FullName}}</a> + {{else}} + <img class="ui avatar image" src="{{.User.RelAvatarLink}}" alt=""/> <a href="{{AppSubUrl}}/{{.User.Name}}">{{.Author.Name}}</a> + {{end}} {{else}} <img class="ui avatar image" src="{{AvatarLink .Author.Email}}" alt=""/> {{.Author.Name}} {{end}} |