From 4ab391a09e24e9d14fa128fc86ee746974ca12b8 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Mon, 18 Jul 2022 22:28:41 +0200 Subject: [PATCH] Remove moderation vote from report view --- app/views/moderation/_moderationbox.haml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/views/moderation/_moderationbox.haml b/app/views/moderation/_moderationbox.haml index c1e12127..f6d851aa 100644 --- a/app/views/moderation/_moderationbox.haml +++ b/app/views/moderation/_moderationbox.haml @@ -33,19 +33,6 @@ %a.btn.btn-primary{ href: moderation_ip_path(report.target.user.id) } IP .col-md-4.col-sm-4.col-xs-4.text-right - %span.mod-count{ id: "mod-count-#{report.id}" } - = report.votes - .btn-group - %button.btn.btn-success.btn-sm{ type: :button, - name: 'mod-vote', - disabled: current_user.report_x_voted?(report, true) ? :disabled : nil, - data: { id: report.id, action: current_user.report_voted?(report) ? 'unvote' : 'vote', vote_type: 'upvote' } } - %i.fa.fa-thumbs-up - %button.btn.btn-danger.btn-sm{ type: :button, - name: 'mod-vote', - disabled: current_user.report_x_voted?(report, false) ? :disabled : nil, - data: { id: report.id, action: current_user.report_voted?(report) ? 'unvote' : 'vote', vote_type: 'downvote' } } - %i.fa.fa-thumbs-down %button.btn.btn-primary.btn-sm{ type: :button, name: 'mod-comments', data: { id: report.id, state: :hidden } } %i.fa.fa-comments %span{ id: "mod-comment-count-#{report.id}" }= report.moderation_comments.all.count