From d5f007539a5447a869731ac098b3f397db5c83c4 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Mon, 26 Jun 2023 12:52:49 +0800 Subject: 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) --- templates/user/settings/account.tmpl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'templates/user') 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"}} + {{/* if ActivationsPending is false, then CanAddEmails must be true, so if CanAddEmails is false, ActivationsPending must be true */}} + {{if not .CanAddEmails}} +
{{.locale.Tr "settings.can_not_add_email_activations_pending"}}
+ {{end}}

-- cgit v1.2.3