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 @@
- <%= 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 %>
- <%= t('votes.agree') %>
+ <%= t("votes.agree") %>
- <%= votes_percentage('likes', debate) %>
+ <%= votes_percentage("likes", debate) %>
<% 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? %>
-
+
<%= t("votes.organizations") %>
<% elsif user_signed_in? && !debate.votable_by?(current_user)%>
-
+
<%= t("votes.anonymous",
verify_account: link_to(t("votes.verify_account"), verification_path )).html_safe %>
@@ -58,7 +58,7 @@
<% elsif !user_signed_in? %>
-
+
<%= t("votes.unauthenticated",
signin: link_to(t("votes.signin"), new_user_session_path),
signup: link_to(t("votes.signup"), new_user_registration_path)).html_safe %>
diff --git a/app/views/debates/index.html.erb b/app/views/debates/index.html.erb
index 2da6eb1bc..7895a9c2a 100644
--- a/app/views/debates/index.html.erb
+++ b/app/views/debates/index.html.erb
@@ -35,7 +35,7 @@
<%= render "shared/section_header", i18n_namespace: "debates.index.section_header", image: "debates" %>
<% end %>
- <% if feature?('user.recommendations') && @recommended_debates.present? %>
+ <% if feature?("user.recommendations") && @recommended_debates.present? %>
<%= render "shared/recommended_index", recommended: @recommended_debates,
disable_recommendations_path: recommendations_disable_debates_path,
namespace: "debates" %>
@@ -71,7 +71,7 @@
<%= render @debates %>
<% else %>
<% @debates.each do |debate| %>
- <%= render partial: 'debates/debate_minimal', locals: { debate: debate } %>
+ <%= render partial: "debates/debate_minimal", locals: { debate: debate } %>
<% end %>
<% end %>
<% else %>
diff --git a/app/views/debates/map.html.erb b/app/views/debates/map.html.erb
index 4c8e7807a..d3aee6ef8 100644
--- a/app/views/debates/map.html.erb
+++ b/app/views/debates/map.html.erb
@@ -1 +1 @@
-<%= render 'shared/map', new_url_path: new_debate_path %>
\ No newline at end of file
+<%= render "shared/map", new_url_path: new_debate_path %>
diff --git a/app/views/debates/show.html.erb b/app/views/debates/show.html.erb
index a54983665..01e3664b1 100644
--- a/app/views/debates/show.html.erb
+++ b/app/views/debates/show.html.erb
@@ -17,7 +17,7 @@
<% end %>
- <%= render '/shared/author_info', resource: @debate %>
+ <%= render "/shared/author_info", resource: @debate %>
•
<%= l @debate.created_at.to_date %>
@@ -26,18 +26,18 @@
<%= link_to t("debates.show.comments", count: @debate.comments_count), "#comments" %>
•
- <%= render 'debates/flag_actions', debate: @debate %>
+ <%= render "debates/flag_actions", debate: @debate %>
<%= safe_html_with_links @debate.description %>
- <%= render 'shared/tags', taggable: @debate %>
+ <%= render "shared/tags", taggable: @debate %>
- <%= render 'relationable/related_content', relationable: @debate %>
+ <%= render "relationable/related_content", relationable: @debate %>
- <%= render 'actions', debate: @debate %>
+ <%= render "actions", debate: @debate %>
@@ -45,7 +45,7 @@
<% if current_user && @debate.editable_by?(current_user) %>
<%= t("debates.show.author") %>
- <%= link_to edit_debate_path(@debate), class: 'button hollow expanded' do %>
+ <%= link_to edit_debate_path(@debate), class: "button hollow expanded" do %>
<%= t("debates.show.edit_debate_link") %>
<% end %>
@@ -54,9 +54,9 @@
<%= t("votes.supports") %>
- <%= render 'debates/votes', debate: @debate %>
+ <%= render "debates/votes", debate: @debate %>
- <%= render partial: 'shared/social_share', locals: {
+ <%= render partial: "shared/social_share", locals: {
share_title: t("debates.show.share"),
title: @debate.title,
url: debate_url(@debate),