diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-06-26 12:52:49 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-26 04:52:49 +0000 |
commit | d5f007539a5447a869731ac098b3f397db5c83c4 (patch) | |
tree | f09fb576fe2cc21e7dfdfb81b500fb98db5ce19f /templates | |
parent | 457946d59566c086ab1ce8d1cae19d8bd09f9d1c (diff) | |
download | gitea-d5f007539a5447a869731ac098b3f397db5c83c4.tar.gz gitea-d5f007539a5447a869731ac098b3f397db5c83c4.zip |
Clarify the reason why the user can't add a new email if there is a pending activation (#25509)
![image](https://github.com/go-gitea/gitea/assets/2114189/cff20df0-ad0c-4140-b8e2-5782cad8a53a)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/user/settings/account.tmpl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/templates/user/settings/account.tmpl b/templates/user/settings/account.tmpl index 97c35fc7dc..01f70e4cc2 100644 --- a/templates/user/settings/account.tmpl +++ b/templates/user/settings/account.tmpl @@ -128,6 +128,10 @@ {{.locale.Tr "settings.add_email"}} </button> </form> + {{/* if ActivationsPending is false, then CanAddEmails must be true, so if CanAddEmails is false, ActivationsPending must be true */}} + {{if not .CanAddEmails}} + <div class="ui warning message">{{.locale.Tr "settings.can_not_add_email_activations_pending"}}</div> + {{end}} </div> <h4 class="ui top attached error header"> |