From d332bfca445b0a38a60e96fcca55bf8dfa617792 Mon Sep 17 00:00:00 2001 From: Arnelle Balane Date: Wed, 27 Feb 2019 02:17:01 +0800 Subject: [PATCH] Fix linting issues in app/views/moderations (#1900) [ci skip] --- app/views/moderations/mod.html.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/views/moderations/mod.html.erb b/app/views/moderations/mod.html.erb index fc092ee35..6c7dd35cb 100644 --- a/app/views/moderations/mod.html.erb +++ b/app/views/moderations/mod.html.erb @@ -62,11 +62,11 @@ <% if current_user.has_role?(:super_admin) && @moderatable.class.name == "Article" %>

Admin: Edit | Content Moderation | Article Admin

@@ -82,7 +82,7 @@ <% end %> <% is_mod = (@moderatable.tag_list.select { |t| current_user.has_role?(:tag_moderator, Tag.find_by_name(t)) }).any? if @moderatable.class.name == "Article" %> <% if @moderatable.class.name == "Article" && (current_user.has_role?(:super_admin) || is_mod) %> -
+
<%= form_for(TagAdjustment.new) do |f| %>

Remove Inappropriate Tags

<% unless current_user.has_role?(:super_admin) %> @@ -94,15 +94,15 @@ <% end %> Current live tags: <%= @moderatable.tag_list %> -

+

<%= f.hidden_field :article_id, value: @moderatable.id %> <%= f.text_field :tag_name, placeholder: "Tag Name" %> - <%= f.text_area :reason_for_adjustment, placeholder: "Reason for Removal (Be super kind)" %> + <%= f.text_area :reason_for_adjustment, placeholder: "Reason for Removal (Be super kind)" %> <%= f.submit "Remove Tag" %> <% adjustments = TagAdjustment.where(article_id: @moderatable.id, adjustment_type: "removal") %> <% if adjustments.any? %> -

- Removed tags: +

+ Removed tags: <% adjustments.each do |adjustment| %> <%= adjustment.tag_name %> <% end %> @@ -145,4 +145,4 @@ }; } }, 200) - \ No newline at end of file +