From b18fec4d5da4f3fe1667b8c92f707594855408c1 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Wed, 14 Mar 2018 00:05:50 +0530 Subject: [PATCH] UX: move Impersonate to the bottom of page --- app/assets/javascripts/admin/templates/user-index.hbs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/admin/templates/user-index.hbs b/app/assets/javascripts/admin/templates/user-index.hbs index 11f96713650..a09048c7599 100644 --- a/app/assets/javascripts/admin/templates/user-index.hbs +++ b/app/assets/javascripts/admin/templates/user-index.hbs @@ -11,9 +11,6 @@ {{d-button action="viewActionLogs" actionParam=model.username icon="list-alt" label="admin.user.action_logs"}} {{/if}} {{#if model.active}} - {{#if model.can_impersonate}} - {{d-button class="btn-danger" action="impersonate" icon="crosshairs" label="admin.impersonate.title" title="admin.impersonate.help"}} - {{/if}} {{#if currentUser.admin}} {{d-button action="logOut" icon="power-off" label="admin.user.log_out"}} {{/if}} @@ -542,6 +539,12 @@

+ {{#if model.active}} + {{#if model.can_impersonate}} + {{d-button class="btn-danger" action="impersonate" icon="crosshairs" label="admin.impersonate.title" title="admin.impersonate.help"}} + {{/if}} + {{/if}} + {{#unless model.anonymizeForbidden}} {{d-button label="admin.user.anonymize" icon="exclamation-triangle"