Show that user is already blocked on Abuse Reports
This commit is contained in:
parent
987989b632
commit
e16d9edf99
1 changed files with 3 additions and 0 deletions
|
@ -25,4 +25,7 @@
|
|||
%td
|
||||
- if user && !user.blocked?
|
||||
= link_to 'Block user', block_admin_user_path(user), data: {confirm: 'USER WILL BE BLOCKED! Are you sure?'}, method: :put, class: "btn btn-xs"
|
||||
- else
|
||||
.btn.btn-xs
|
||||
Already Blocked
|
||||
= link_to 'Remove report', [:admin, abuse_report], remote: true, method: :delete, class: "btn btn-xs btn-close js-remove-tr"
|
||||
|
|
Loading…
Reference in a new issue