Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2016-01-10 08:20:25 +0300
committerStan Hu <stanhu@gmail.com>2016-01-10 08:25:18 +0300
commit5f6b093445ff0165fe4da228034db57b3395d983 (patch)
treef361b9851a3a69d5ece6a7a3b6320a3880d3c2f7 /app
parentc81647ae8c5dc68ac8d7dd2970a53b31bc656a1d (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.haml2
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"