UX: Add link to user email preferences in admin view (#10169)

This commit is contained in:
Bianca Nenciu 2020-07-07 03:20:14 +03:00 committed by GitHub
parent e08b860e88
commit b9e3db6387
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -69,6 +69,13 @@
title="admin.users.check_email.title"}}
{{/if}}
</div>
<div class="controls">
{{#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}}
</div>
</div>
<div class="display-row secondary-emails">
@ -94,6 +101,18 @@
title="admin.users.check_email.title"}}
{{/if}}
</div>
<div class="controls">
{{#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}}
</div>
</div>
<div class="display-row bounce-score">