Disable "Already Blocked" button in admin abuse report page

This commit is contained in:
Stan Hu 2016-01-09 21:20:25 -08:00
parent c81647ae8c
commit 5f6b093445
1 changed files with 1 additions and 1 deletions

View File

@ -26,6 +26,6 @@
- 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
.btn.btn-xs.disabled
Already Blocked
= link_to 'Remove report', [:admin, abuse_report], remote: true, method: :delete, class: "btn btn-xs btn-close js-remove-tr"