mirror of
https://github.com/go-gitea/gitea.git
synced 2024-08-28 23:27:27 +02:00
* UI config to toggle whether user email shows up in Explore Users
* Recommendation made by @tboerger
66a1c59fe7 (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)
38 lines
1.1 KiB
Cheetah
38 lines
1.1 KiB
Cheetah
{{template "base/head" .}}
|
|
<div class="explore users">
|
|
<div class="ui container">
|
|
<div class="ui grid">
|
|
{{template "explore/navbar" .}}
|
|
<div class="twelve wide column content">
|
|
{{template "explore/search" .}}
|
|
|
|
<div class="ui user list">
|
|
{{range .Users}}
|
|
<div class="item">
|
|
<img class="ui avatar image" src="{{.RelAvatarLink}}">
|
|
<div class="content">
|
|
<span class="header"><a href="{{.HomeLink}}">{{.Name}}</a> {{.FullName}}</span>
|
|
<div class="description">
|
|
{{if .Location}}
|
|
<i class="octicon octicon-location"></i> {{.Location}}
|
|
{{end}}
|
|
{{if and $.ShowUserEmail .Email $.IsSigned}}
|
|
<i class="octicon octicon-mail"></i>
|
|
<a href="mailto:{{.Email}}" rel="nofollow">{{.Email}}</a>
|
|
{{end}}
|
|
<i class="octicon octicon-clock"></i> {{$.i18n.Tr "user.join_on"}} {{DateFmtShort .Created}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{else}}
|
|
<div>{{$.i18n.Tr "explore.user_no_results"}}</div>
|
|
{{end}}
|
|
</div>
|
|
|
|
{{template "base/paginate" .}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{{template "base/footer" .}}
|