aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/explore/users.tmpl2
-rw-r--r--templates/user/profile.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/explore/users.tmpl b/templates/explore/users.tmpl
index 09091df253..84ab7ad7fb 100644
--- a/templates/explore/users.tmpl
+++ b/templates/explore/users.tmpl
@@ -16,7 +16,7 @@
{{if .Location}}
<i class="octicon octicon-location"></i> {{.Location}}
{{end}}
- {{if and .Email $.IsSigned}}
+ {{if and $.ShowUserEmail .Email $.IsSigned}}
<i class="octicon octicon-mail"></i>
<a href="mailto:{{.Email}}" rel="nofollow">{{.Email}}</a>
{{end}}
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index cfb646ace1..37f94d2b79 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -22,7 +22,7 @@
{{if .Owner.Location}}
<li><i class="octicon octicon-location"></i> {{.Owner.Location}}</li>
{{end}}
- {{if and .Owner.Email .IsSigned}}
+ {{if and $.ShowUserEmail .Owner.Email .IsSigned}}
<li>
<i class="octicon octicon-mail"></i>
<a href="mailto:{{.Owner.Email}}" rel="nofollow">{{.Owner.Email}}</a>