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

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

diff --git a/app/assets/javascripts/admin/templates/user-index.hbs b/app/assets/javascripts/admin/templates/user-index.hbs
index 62e500f..5cccf43 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}}
       </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">

GitHub sha: b9e3db63

This commit appears in #10169 which was approved by eviltrout. It was merged by SamSaffron.