summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-07-31 13:53:14 +0800
committerUnknwon <u@gogs.io>2015-07-31 13:53:14 +0800
commiteea9302d8f67cdef613df24e2b09a58b898b9037 (patch)
treefa587e6c2c69c797b0739ae5dc43f0182c0025eb /templates
parentb983912fce5b58568c957f0fab46b9b86b54275e (diff)
downloadgitea-eea9302d8f67cdef613df24e2b09a58b898b9037.tar.gz
gitea-eea9302d8f67cdef613df24e2b09a58b898b9037.zip
fix #1204
Diffstat (limited to 'templates')
-rw-r--r--templates/org/home.tmpl2
-rw-r--r--templates/user/profile.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl
index fdce06a298..4301063627 100644
--- a/templates/org/home.tmpl
+++ b/templates/org/home.tmpl
@@ -12,7 +12,7 @@
<ul class="text-grey">
{{if .Org.Location}}<li><span class="octicon octicon-location"></span> <span>{{.Org.Location}}</span></li>{{end}}
{{if .Org.Website}}<li><span class="octicon octicon-link"></span> <a target="_blank" href="{{.Org.Website}}">{{.Org.Website}}</a></li>{{end}}
- {{if .Org.Email}}<li><span class="octicon octicon-mail"></span> <a href="mailto:{{.Org.Email}}">{{.Org.Email}}</a></li>{{end}}
+ {{if and .Org.Email .IsSigned}}<li><span class="octicon octicon-mail"></span> <a href="mailto:{{.Org.Email}}">{{.Org.Email}}</a></li>{{end}}
</ul>
</div>
</div>
diff --git a/templates/user/profile.tmpl b/templates/user/profile.tmpl
index dab90c35a2..c8b7c591b8 100644
--- a/templates/user/profile.tmpl
+++ b/templates/user/profile.tmpl
@@ -22,7 +22,7 @@
{{if .Owner.Location}}
<li class="list-group-item"><i class="octicon octicon-location"></i>&nbsp;&nbsp;{{.Owner.Location}}</li>
{{end}}
- {{if .Owner.Email}}
+ {{if and .Owner.Email .IsSigned}}
<li class="list-group-item"><i class="octicon octicon-mail"></i>&nbsp;&nbsp;<a href="mailto:{{.Owner.Email}}" rel="nofollow">{{.Owner.Email}}</a></li>
{{end}}
{{if .Owner.Website}}