diff options
author | Stan Hu <stanhu@gmail.com> | 2016-01-10 08:20:25 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2016-01-10 08:25:18 +0300 |
commit | 5f6b093445ff0165fe4da228034db57b3395d983 (patch) | |
tree | f361b9851a3a69d5ece6a7a3b6320a3880d3c2f7 /app | |
parent | c81647ae8c5dc68ac8d7dd2970a53b31bc656a1d (diff) |
Disable "Already Blocked" button in admin abuse report page
Diffstat (limited to 'app')
-rw-r--r-- | app/views/admin/abuse_reports/_abuse_report.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/abuse_reports/_abuse_report.html.haml b/app/views/admin/abuse_reports/_abuse_report.html.haml index 853a780c576..2ab01704b77 100644 --- a/app/views/admin/abuse_reports/_abuse_report.html.haml +++ b/app/views/admin/abuse_reports/_abuse_report.html.haml @@ -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" |