mirror of
https://github.com/go-gitea/gitea.git
synced 2024-11-27 10:54:44 +01:00
51d578ff33
- Add site-wide option DEFAULT_KEEP_EMAIL_PRIVATE. - Add the new option to the install and admin/config pages. - Add the new option to app.ini in the service section. - Add the new option to the settings struct. - Add English text strings to i18n. - Add field KeepEmailPrivate to user struct. - Add field KeepEmailPrivate to user form. - Add option to UI. - Add using noreply email address if user has "Keep Email Private". An email address <LowerName>@<NO_REPLY_ADDRESS> is now used in commit messages (and hopefully all other git log relevant places). The change relies on the fact that git commands should use user.NetGitSig(). - Add hiding of email address in UI, if user has set "Keep Email Private". - Add condition to show email address only on explore/users and user pages, if user has not set "Keep Email Private". - Add noreply email in API if set "Keep Email Private". - Add a new service setting NO_REPLY_ADDRESS. The value of this setting is used as the domain part for the user's email address in git log, iff he decides to keep his email address private. If the user decides to keep his email address private and this option is not set 'noreply.example.org' is used, which no MTA should send email to. Add NO_REPLY_ADDRESS to conf/app.ini.
38 lines
1.2 KiB
Cheetah
38 lines
1.2 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 (not .KeepEmailPrivate)}}
|
|
<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" .}}
|