diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-21 10:58:08 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-21 10:58:08 -0500 |
commit | 55dfe2c97876a8af5db0fb071f002e33fb686128 (patch) | |
tree | c43f8eb741f1dd69b62888202582e4894a5da66d /templates/repo/view_list.tmpl | |
parent | 3c3f7c2a56ba18d7210cc40e33e64da5219ef990 (diff) | |
download | gitea-55dfe2c97876a8af5db0fb071f002e33fb686128.tar.gz gitea-55dfe2c97876a8af5db0fb071f002e33fb686128.zip |
custom avatar upload
Diffstat (limited to 'templates/repo/view_list.tmpl')
-rw-r--r-- | templates/repo/view_list.tmpl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/repo/view_list.tmpl b/templates/repo/view_list.tmpl index e65d7c1134..d516eac94c 100644 --- a/templates/repo/view_list.tmpl +++ b/templates/repo/view_list.tmpl @@ -3,8 +3,14 @@ <tr> <th colspan="4" class="clear"> <span class="author left"> + {{if .LastCommitUser}} + <img class="avatar-24 radius" src="{{.LastCommitUser.AvatarLink}}" /> + <a href="{{AppSubUrl}}/{{.LastCommitUser.Name}}"><strong>{{.LastCommit.Author.Name}}</strong></a>: + {{else}} <img class="avatar-24 radius" src="{{AvatarLink .LastCommit.Author.Email}}" /> - {{if .LastCommitUser}}<a href="{{AppSubUrl}}/{{.LastCommitUser}}">{{end}}<strong>{{.LastCommit.Author.Name}}</strong>:{{if .LastCommitUser}}</a>{{end}} + <strong>{{.LastCommit.Author.Name}}</strong>: + {{end}} + </span> <span class="last-commit"><a href="{{.RepoLink}}/commit/{{.LastCommit.Id}}" rel="nofollow"> <strong>{{ShortSha .LastCommit.Id.String}}</strong></a> |