diff options
author | Stan Hu <stanhu@gmail.com> | 2015-07-01 22:26:14 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-07-02 04:22:51 -0700 |
commit | 3e738e3b9aeae5620116109258c4d4da84180e7e (patch) | |
tree | d433a56409141671d9c56e6bca3e0ce16f546ce5 /app/views/admin/users/show.html.haml | |
parent | 2ca7ffd094ae285823d1a00b8cf1a7d23b80a2a3 (diff) | |
download | gitlab-ce-3e738e3b9aeae5620116109258c4d4da84180e7e.tar.gz |
Add support for unlocking users in admin settings
Closes https://github.com/gitlabhq/gitlabhq/issues/9381
Diffstat (limited to 'app/views/admin/users/show.html.haml')
-rw-r--r-- | app/views/admin/users/show.html.haml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml index 2662b3569ec..8c6b8e851c4 100644 --- a/app/views/admin/users/show.html.haml +++ b/app/views/admin/users/show.html.haml @@ -131,6 +131,14 @@ %li Owned groups will be left %br = link_to 'Block user', block_admin_user_path(@user), data: { confirm: 'USER WILL BE BLOCKED! Are you sure?' }, method: :put, class: "btn btn-warning" + - if @user.access_locked? + .panel.panel-info + .panel-heading + This account has been locked + .panel-body + %p This user has been temporarily locked due to excessive number of failed logins. You may manually unlock the account. + %br + = link_to 'Unlock user', unlock_admin_user_path(@user), method: :put, class: "btn btn-info", data: { confirm: 'Are you sure?' } .panel.panel-danger .panel-heading |