User's blocked field refactored to use state machine
This commit is contained in:
parent
9a06dd4aa1
commit
0d9a6fe7b1
12 changed files with 40 additions and 33 deletions
|
@ -61,7 +61,7 @@
|
|||
.span4
|
||||
- unless @admin_user.new_record?
|
||||
.alert.alert-error
|
||||
- if @admin_user.blocked
|
||||
- if @admin_user.blocked?
|
||||
%p This user is blocked and is not able to login to GitLab
|
||||
= link_to 'Unblock User', unblock_admin_user_path(@admin_user), method: :put, class: "btn btn-small"
|
||||
- else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue