From b9e3db6387c54edb6f0fb0d7b82195ab11155b70 Mon Sep 17 00:00:00 2001 From: Bianca Nenciu Date: Tue, 7 Jul 2020 03:20:14 +0300 Subject: [PATCH] UX: Add link to user email preferences in admin view (#10169) --- .../admin/templates/user-index.hbs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/assets/javascripts/admin/templates/user-index.hbs b/app/assets/javascripts/admin/templates/user-index.hbs index 62e500f8057..5cccf43e373 100644 --- a/app/assets/javascripts/admin/templates/user-index.hbs +++ b/app/assets/javascripts/admin/templates/user-index.hbs @@ -69,6 +69,13 @@ title="admin.users.check_email.title"}} {{/if}} +
+ {{#if siteSettings.sso_overrides_email}} + {{i18n "user.email.sso_override_instructions"}} + {{else if model.email}} + {{html-safe (i18n "admin.user.visit_profile" url=preferencesPath)}} + {{/if}} +
@@ -94,6 +101,18 @@ title="admin.users.check_email.title"}} {{/if}}
+ +
+ {{#if model.email}} + {{#if model.secondary_emails}} + {{#if siteSettings.sso_overrides_email}} + {{i18n "user.email.sso_override_instructions"}} + {{else}} + {{html-safe (i18n "admin.user.visit_profile" url=preferencesPath)}} + {{/if}} + {{/if}} + {{/if}} +