diff --git a/app/views/debates/_actions.html.erb b/app/views/debates/_actions.html.erb index 1b61e045b..276d5b2f7 100644 --- a/app/views/debates/_actions.html.erb +++ b/app/views/debates/_actions.html.erb @@ -1,21 +1,21 @@ <% if can? :hide, debate %> <%= link_to t("admin.actions.hide").capitalize, hide_moderation_debate_path(debate), - method: :put, remote: true, data: { confirm: t('admin.actions.confirm') } %> + method: :put, remote: true, data: { confirm: t("admin.actions.confirm") } %> <% end %> <% if can? :hide, debate.author %>  |  <%= link_to t("admin.actions.hide_author").capitalize, hide_moderation_user_path(debate.author_id), - method: :put, data: { confirm: t('admin.actions.confirm') } %> + method: :put, data: { confirm: t("admin.actions.confirm") } %> <% end %> <% if can? :mark_featured, debate %>  |  <% if debate.featured? %> <%= link_to t("admin.actions.unmark_featured").capitalize, unmark_featured_debate_path(debate), - method: :put, data: { confirm: t('admin.actions.confirm') } %> + method: :put, data: { confirm: t("admin.actions.confirm") } %> <% else %> <%= link_to t("admin.actions.mark_featured").capitalize, mark_featured_debate_path(debate), - method: :put, data: { confirm: t('admin.actions.confirm') } %> + method: :put, data: { confirm: t("admin.actions.confirm") } %> <% end %> <% end %> diff --git a/app/views/debates/_comments.html.erb b/app/views/debates/_comments.html.erb index e7475662d..7e041cdb5 100644 --- a/app/views/debates/_comments.html.erb +++ b/app/views/debates/_comments.html.erb @@ -6,10 +6,10 @@ (<%= @debate.comments_count %>) - <%= render 'shared/wide_order_selector', i18n_namespace: "comments" %> + <%= render "shared/wide_order_selector", i18n_namespace: "comments" %> <% if user_signed_in? %> - <%= render 'comments/form', {commentable: @debate, parent_id: nil, toggeable: false} %> + <%= render "comments/form", {commentable: @debate, parent_id: nil, toggeable: false} %> <% else %>
@@ -21,7 +21,7 @@ <% end %> <% @comment_tree.root_comments.each do |comment| %> - <%= render 'comments/comment', comment: comment %> + <%= render "comments/comment", comment: comment %> <% end %> <%= paginate @comment_tree.root_comments %> diff --git a/app/views/debates/_debate.html.erb b/app/views/debates/_debate.html.erb index 03c53979d..57adbd11f 100644 --- a/app/views/debates/_debate.html.erb +++ b/app/views/debates/_debate.html.erb @@ -47,7 +47,7 @@
- <%= render 'debates/votes', debate: debate %> + <%= render "debates/votes", debate: debate %>
diff --git a/app/views/debates/_debate_minimal.html.erb b/app/views/debates/_debate_minimal.html.erb index f7a3a26af..be640cb4f 100644 --- a/app/views/debates/_debate_minimal.html.erb +++ b/app/views/debates/_debate_minimal.html.erb @@ -4,7 +4,7 @@
<% cache [locale_and_user_status, - 'index_minimal', debate, @debate_votes[debate.id]] do %> + "index_minimal", debate, @debate_votes[debate.id]] do %>

<%= link_to debate.title, debate %>

<% end %>
diff --git a/app/views/debates/_flag_actions.html.erb b/app/views/debates/_flag_actions.html.erb index 3d57e031b..21b5426c2 100644 --- a/app/views/debates/_flag_actions.html.erb +++ b/app/views/debates/_flag_actions.html.erb @@ -4,7 +4,7 @@ - <%= link_to t('shared.flag'), flag_debate_path(debate), method: :put, remote: true, id: "flag-debate-#{ debate.id }" %> + <%= link_to t("shared.flag"), flag_debate_path(debate), method: :put, remote: true, id: "flag-debate-#{ debate.id }" %> <% end %> @@ -13,7 +13,7 @@ - <%= link_to t('shared.unflag'), unflag_debate_path(debate), method: :put, remote: true, id: "unflag-debate-#{ debate.id }" %> + <%= link_to t("shared.unflag"), unflag_debate_path(debate), method: :put, remote: true, id: "unflag-debate-#{ debate.id }" %> <% end %> diff --git a/app/views/debates/_form.html.erb b/app/views/debates/_form.html.erb index a98611011..27884b47e 100644 --- a/app/views/debates/_form.html.erb +++ b/app/views/debates/_form.html.erb @@ -1,6 +1,6 @@ <%= form_for(@debate) do |f| %> - <%= render 'shared/errors', resource: @debate %> + <%= render "shared/errors", resource: @debate %>
@@ -24,12 +24,12 @@ placeholder: t("debates.form.tags_placeholder"), aria: {describedby: "tag-list-help-text"}, data: {js_url: suggest_tags_path}, - class: 'tag-autocomplete'%> + class: "tag-autocomplete"%>
<% if @debate.new_record? %> <%= f.label :terms_of_service do %> - <%= f.check_box :terms_of_service, title: t('form.accept_terms_title'), label: false %> + <%= f.check_box :terms_of_service, title: t("form.accept_terms_title"), label: false %> <%= t("form.accept_terms", policy: link_to(t("form.policy"), "/privacy", target: "blank"), diff --git a/app/views/debates/_votes.html.erb b/app/views/debates/_votes.html.erb index c252aa9fe..5ec065323 100644 --- a/app/views/debates/_votes.html.erb +++ b/app/views/debates/_votes.html.erb @@ -2,19 +2,19 @@
<% if user_signed_in? %> - <%= link_to vote_debate_path(debate, value: 'yes'), - class: "like #{voted_classes[:in_favor]}", title: t('votes.agree'), method: "post", remote: true do %> + <%= link_to vote_debate_path(debate, value: "yes"), + class: "like #{voted_classes[:in_favor]}", title: t("votes.agree"), method: "post", remote: true do %> - <%= t('votes.agree') %> + <%= t("votes.agree") %> - <%= votes_percentage('likes', debate) %> + <%= votes_percentage("likes", debate) %> <% end %> <% else %> <% end %>
@@ -23,18 +23,18 @@
<% if user_signed_in? %> - <%= link_to vote_debate_path(debate, value: 'no'), class: "unlike #{voted_classes[:against]}", title: t('votes.disagree'), method: "post", remote: true do %> + <%= link_to vote_debate_path(debate, value: "no"), class: "unlike #{voted_classes[:against]}", title: t("votes.disagree"), method: "post", remote: true do %> - <%= t('votes.disagree') %> + <%= t("votes.disagree") %> - <%= votes_percentage('dislikes', debate) %> + <%= votes_percentage("dislikes", debate) %> <% end %> <% else %>
- <%= t('votes.disagree') %> + <%= t("votes.disagree") %> - <%= votes_percentage('dislikes', debate) %> + <%= votes_percentage("dislikes", debate) %>
<% end %>
@@ -44,13 +44,13 @@ <% if user_signed_in? && current_user.organization? %> -