diff options
author | Mark Fletcher <mark@gitlab.com> | 2017-05-01 09:25:52 +0300 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2017-05-03 13:05:54 +0300 |
commit | d6da528b458942cf66b18b834840e0a6dbba0fc9 (patch) | |
tree | c3c904949565450b6239756be38dca44789c2d8c /app/views/admin | |
parent | 03f13af588cf2b578a27717db492c216fcafbf9a (diff) |
Note Ghost user and refer to user deletion documentation
+ Add a partial for displaying user deletion guidance
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/users/show.html.haml | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/app/views/admin/users/show.html.haml b/app/views/admin/users/show.html.haml index 840d843f069..89d0bbb7126 100644 --- a/app/views/admin/users/show.html.haml +++ b/app/views/admin/users/show.html.haml @@ -175,11 +175,7 @@ .panel-body - if @user.can_be_removed? && can?(current_user, :destroy_user, @user) %p Deleting a user has the following effects: - %ul - %li All user content like authored issues, snippets, comments will be removed - - rp = @user.personal_projects.count - - unless rp.zero? - %li #{pluralize rp, 'personal project'} will be removed and cannot be restored + = render 'users/deletion_guidance', user: @user %br = link_to 'Remove user', [:admin, @user], data: { confirm: "USER #{@user.name} WILL BE REMOVED! Are you sure?" }, method: :delete, class: "btn btn-remove" - else |