diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-06-28 00:59:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 00:59:47 +0800 |
commit | 85d960d2a10ce6db4dd4e05f7831ff3b33beee65 (patch) | |
tree | c23202c6a324456a984881bc5caa142160833b6b /templates/user | |
parent | 81eda36285e1a6a2fb98201655d86114e75a74ef (diff) | |
download | gitea-85d960d2a10ce6db4dd4e05f7831ff3b33beee65.tar.gz gitea-85d960d2a10ce6db4dd4e05f7831ff3b33beee65.zip |
Hide notify mail setting ui if not enabled (#20138)
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/settings/account.tmpl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl index 3662ec0fa7..1b3fd136de 100644 --- a/templates/user/settings/account.tmpl +++ b/templates/user/settings/account.tmpl @@ -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}} |