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 | |
parent | 83347954fc3c0c317c77f0528cdbaa456093771a (diff) | |
download | gitlab-ce-eb9528b8b964c78ef3d33818286c529b83c35a5e.tar.gz |
Move login button to user page, switched to POST method
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/users/_head.html.haml | 2 | ||||
-rw-r--r-- | app/views/admin/users/index.html.haml | 1 |
2 files changed, 2 insertions, 1 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 diff --git a/app/views/admin/users/index.html.haml b/app/views/admin/users/index.html.haml index 8dbce7a4a15..82a88863eb7 100644 --- a/app/views/admin/users/index.html.haml +++ b/app/views/admin/users/index.html.haml @@ -90,7 +90,6 @@ = link_to 'Edit', edit_admin_user_path(user), id: "edit_#{dom_id(user)}", class: "btn btn-xs" - unless user == current_user - = link_to 'Log in', login_as_admin_user_path(user), method: :put, class: "btn btn-xs btn-primary" - if user.blocked? = link_to 'Unblock', unblock_admin_user_path(user), method: :put, class: "btn btn-xs btn-success" - else |