From c3440c4dd37a0b765ceff96fcdea832e1d76a234 Mon Sep 17 00:00:00 2001
From: Unknwon <u@gogs.io>
Date: Wed, 9 Dec 2015 11:46:39 -0500
Subject: [PATCH] #2035 Show author e-mail in commit diff

---
 templates/repo/diff.tmpl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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>