diff options
author | Pavel Forkert <fxposter@gmail.com> | 2015-09-24 16:34:04 +0300 |
---|---|---|
committer | Pavel Forkert <fxposter@gmail.com> | 2015-09-24 16:34:04 +0300 |
commit | eb9528b8b964c78ef3d33818286c529b83c35a5e (patch) | |
tree | 9cec858861f8ff8c3099e6d6ef00d2b5409f597a /app/views/admin/users/_head.html.haml | |
parent | 83347954fc3c0c317c77f0528cdbaa456093771a (diff) |
Move login button to user page, switched to POST method
Diffstat (limited to 'app/views/admin/users/_head.html.haml')
-rw-r--r-- | app/views/admin/users/_head.html.haml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/views/admin/users/_head.html.haml b/app/views/admin/users/_head.html.haml index 9d5e934c8ba..4245d0f1eda 100644 --- a/app/views/admin/users/_head.html.haml +++ b/app/views/admin/users/_head.html.haml @@ -6,6 +6,8 @@ %span.cred (Admin) .pull-right + - unless @user == current_user + = link_to 'Log in as this user', login_as_admin_user_path(@user), method: :post, class: "btn btn-grouped btn-info" = link_to edit_admin_user_path(@user), class: "btn btn-grouped" do %i.fa.fa-pencil-square-o Edit |