Skip to content

Commit

Permalink
Hide email in the user profile page
Browse files Browse the repository at this point in the history
if you are active ShowUserEmail
ref go-gitea#336 (comment)
  • Loading branch information
Thiago Avelino authored Dec 31, 2016
1 parent db6a4e9 commit 2bd1e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/user/profile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 2bd1e16

Please sign in to comment.