1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Hide notify mail setting ui if not enabled (#20138)

This commit is contained in:
Lunny Xiao
2022-06-28 00:59:47 +08:00
committed by GitHub
parent 81eda36285
commit 85d960d2a1
2 changed files with 3 additions and 0 deletions

View File

@@ -43,6 +43,7 @@
</h4>
<div class="ui attached segment">
<div class="ui email list">
{{if $.EnableNotifyMail}}
<div class="item">
<form action="{{AppSubUrl}}/user/settings/account/email" class="ui form" method="post">
{{.i18n.Tr "settings.email_desc"}}
@@ -69,6 +70,7 @@
</div>
</form>
</div>
{{end}}
{{range .Emails}}
<div class="item">
{{if not .IsPrimary}}