diff options
author | Thiago Avelino <thiago@avelino.xxx> | 2017-01-01 00:51:10 -0200 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2017-01-01 10:51:10 +0800 |
commit | 787fda53efc65916294caa6faf4aa8ecaf6cf86c (patch) | |
tree | 73fcabf10a76b18b0aa53d1dee0e40883a8d2586 /templates/explore | |
parent | a09a3dcabb566785208edb0df85a76c0303d4d52 (diff) | |
download | gitea-787fda53efc65916294caa6faf4aa8ecaf6cf86c.tar.gz gitea-787fda53efc65916294caa6faf4aa8ecaf6cf86c.zip |
UI config to toggle whether user email shows up in Explore Users (#336)
* UI config to toggle whether user email shows up in Explore Users
* Recommendation made by @tboerger
https://github.com/go-gitea/gitea/pull/336/commits/66a1c59fe730eff019ce100673c6800cce7d102d#r94122732
* fixed typo, rename ShowUserEmailInExplore to ShowUserEmail
* Fixed typo merged conflict
* Hide email in the user profile page
if you are active ShowUserEmail
ref https://github.com/go-gitea/gitea/pull/336#issuecomment-269843725
* Please replace MustBool() with MustBool(true)
Diffstat (limited to 'templates/explore')
-rw-r--r-- | templates/explore/users.tmpl | 2 |
1 files changed, 1 insertions, 1 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}} |