summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-12-09 11:46:39 -0500
committerUnknwon <u@gogs.io>2015-12-09 11:46:39 -0500
commitc3440c4dd37a0b765ceff96fcdea832e1d76a234 (patch)
treeb32614a4952d7dbbbac5f0ec6365f0485f2affdc
parent718d3ae25895a37c26b7508848b8c971cc14d433 (diff)
downloadgitea-c3440c4dd37a0b765ceff96fcdea832e1d76a234.tar.gz
gitea-c3440c4dd37a0b765ceff96fcdea832e1d76a234.zip
#2035 Show author e-mail in commit diff
-rw-r--r--templates/repo/diff.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl
index 544e3b6030..6568968414 100644
--- a/templates/repo/diff.tmpl
+++ b/templates/repo/diff.tmpl
@@ -14,7 +14,7 @@
<div class="ui attached info segment">
{{if .Author}}
<img class="ui avatar image" src="{{.Author.AvatarLink}}" />
- <a href="{{.Author.HomeLink}}"><strong>{{.Commit.Author.Name}}</strong></a>
+ <a href="{{.Author.HomeLink}}"><strong>{{.Commit.Author.Name}}</strong></a> {{if .IsSigned}}<{{.Commit.Author.Email}}>{{end}}
{{else}}
<img class="ui avatar image" src="{{AvatarLink .Commit.Author.Email}}" />
<strong>{{.Commit.Author.Name}}</strong>