- <%= render partial: 'shared/social_share', locals: {
+ <%= render partial: "shared/social_share", locals: {
title: proposal.title,
url: proposal_url(proposal),
description: proposal.summary,
diff --git a/app/views/proposals/_flag_actions.html.erb b/app/views/proposals/_flag_actions.html.erb
index 8aa3e5cf4..ef42b3f09 100644
--- a/app/views/proposals/_flag_actions.html.erb
+++ b/app/views/proposals/_flag_actions.html.erb
@@ -4,7 +4,7 @@
<% end %>
diff --git a/app/views/proposals/_form.html.erb b/app/views/proposals/_form.html.erb
index ae6e329bc..9cf4044a7 100644
--- a/app/views/proposals/_form.html.erb
+++ b/app/views/proposals/_form.html.erb
@@ -1,5 +1,5 @@
<%= form_for(@proposal, url: form_url) do |f| %>
- <%= render 'shared/errors', resource: @proposal %>
+ <%= render "shared/errors", resource: @proposal %>
@@ -25,7 +25,7 @@
<%= f.label :summary, t("proposals.form.proposal_summary") %>
<%= t("proposals.form.proposal_summary_note") %>
<%= f.text_area :summary, rows: 4, maxlength: 200, label: false,
- placeholder: t('proposals.form.proposal_summary'),
+ placeholder: t("proposals.form.proposal_summary"),
aria: {describedby: "summary-help-text"} %>
@@ -48,13 +48,13 @@
<% if feature?(:allow_images) %>
- <%= render 'images/nested_image', imageable: @proposal, f: f %>
+ <%= render "images/nested_image", imageable: @proposal, f: f %>
<% end %>
<% if feature?(:allow_attached_documents) %>
- <%= render 'documents/nested_documents', documentable: @proposal, f: f %>
+ <%= render "documents/nested_documents", documentable: @proposal, f: f %>
<% end %>
@@ -66,7 +66,7 @@
<% if feature?(:map) %>
- <%= render 'map_locations/form_fields',
+ <%= render "map_locations/form_fields",
form: f,
map_location: @proposal.map_location || MapLocation.new,
label: t("proposals.form.map_location"),
@@ -93,7 +93,7 @@
<%= f.text_field :tag_list, value: @proposal.tag_list.to_s,
label: false,
placeholder: t("proposals.form.tags_placeholder"),
- class: 'js-tag-list tag-autocomplete',
+ class: "js-tag-list tag-autocomplete",
aria: {describedby: "tag-list-help-text"},
data: {js_url: suggest_tags_path} %>
@@ -110,7 +110,7 @@
<% if @proposal.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/proposals/_geozones.html.erb b/app/views/proposals/_geozones.html.erb
index 9840f8fdc..efcbb7e93 100644
--- a/app/views/proposals/_geozones.html.erb
+++ b/app/views/proposals/_geozones.html.erb
@@ -1,6 +1,6 @@
-<%= link_to map_proposals_path, id: 'map', title: t("shared.tags_cloud.districts_list") do %>
+<%= link_to map_proposals_path, id: "map", title: t("shared.tags_cloud.districts_list") do %>
<%= image_tag(image_path_for("map.jpg"), alt: t("shared.tags_cloud.districts_list")) %>
<% end %>
diff --git a/app/views/proposals/_info.html.erb b/app/views/proposals/_info.html.erb
index 6d0abf91c..79e1316e6 100644
--- a/app/views/proposals/_info.html.erb
+++ b/app/views/proposals/_info.html.erb
@@ -1,5 +1,5 @@
- <%= render '/shared/author_info', resource: @proposal %>
+ <%= render "/shared/author_info", resource: @proposal %>
•
<%= l @proposal.created_at.to_date %>
@@ -10,7 +10,7 @@
<% if current_user %>
•
- <%= render 'proposals/flag_actions', proposal: @proposal %>
+ <%= render "proposals/flag_actions", proposal: @proposal %>
<% end %>
@@ -46,7 +46,7 @@
- <%= t('proposals.show.title_external_url') %>
+ <%= t("proposals.show.title_external_url") %>
<%= text_with_links @proposal.external_url %>
@@ -56,7 +56,7 @@
- <%= t('proposals.show.title_video_url') %>
+ <%= t("proposals.show.title_video_url") %>
<%= text_with_links @proposal.video_url %>
@@ -70,16 +70,16 @@
<%= t("proposals.show.retired") %>:
- <%= t("proposals.retire_options.#{@proposal.retired_reason}") unless @proposal.retired_reason == 'other' %>
+ <%= t("proposals.retire_options.#{@proposal.retired_reason}") unless @proposal.retired_reason == "other" %>
<%= simple_format text_with_links(@proposal.retired_explanation), {}, sanitize: false %>
<% end %>
<% if feature?(:allow_attached_documents) %>
- <%= render 'documents/documents',
+ <%= render "documents/documents",
documents: @proposal.documents,
max_documents_allowed: Proposal.max_documents_allowed %>
<% end %>
-<%= render 'shared/tags', taggable: @proposal %>
+<%= render "shared/tags", taggable: @proposal %>
diff --git a/app/views/proposals/_notifications.html.erb b/app/views/proposals/_notifications.html.erb
index fc684b8f0..5ba0a87bf 100644
--- a/app/views/proposals/_notifications.html.erb
+++ b/app/views/proposals/_notifications.html.erb
@@ -3,7 +3,7 @@
<% if @notifications.blank? %>
- <%= t('proposals.show.no_notifications') %>
+ <%= t("proposals.show.no_notifications") %>
<% end %>
@@ -14,7 +14,7 @@
<%= simple_format text_with_links(notification.body), {}, sanitize: false %>
- <%= render 'proposal_notifications/actions', notification: notification %>
+ <%= render "proposal_notifications/actions", notification: notification %>
<% end %>
diff --git a/app/views/proposals/_proposal.html.erb b/app/views/proposals/_proposal.html.erb
index d33b346db..b9d07f672 100644
--- a/app/views/proposals/_proposal.html.erb
+++ b/app/views/proposals/_proposal.html.erb
@@ -18,7 +18,7 @@
<% end %>
- <% cache [locale_and_user_status(proposal), 'index', proposal, proposal.author] do %>
+ <% cache [locale_and_user_status(proposal), "index", proposal, proposal.author] do %>
<%= link_to proposal.title, namespaced_proposal_path(proposal) %>
@@ -76,8 +76,8 @@
<%= t("proposals.proposal.archived") %>
<% else %>
- <%= render 'votes',
- { proposal: proposal, vote_url: vote_proposal_path(proposal, value: 'yes') } %>
+ <%= render "votes",
+ { proposal: proposal, vote_url: vote_proposal_path(proposal, value: "yes") } %>
<% end %>
diff --git a/app/views/proposals/_proposal_minimal.html.erb b/app/views/proposals/_proposal_minimal.html.erb
index f99b01c2c..373622925 100644
--- a/app/views/proposals/_proposal_minimal.html.erb
+++ b/app/views/proposals/_proposal_minimal.html.erb
@@ -4,7 +4,7 @@
<% cache [locale_and_user_status(proposal),
- 'index_minimal', proposal, proposal.author] do %>
+ "index_minimal", proposal, proposal.author] do %>
<%= link_to proposal.title, namespaced_proposal_path(proposal) %>
<% end %>
diff --git a/app/views/proposals/_retired.html.erb b/app/views/proposals/_retired.html.erb
index 2167b14af..78d5c2af0 100644
--- a/app/views/proposals/_retired.html.erb
+++ b/app/views/proposals/_retired.html.erb
@@ -2,10 +2,10 @@
<% if params[:retired].blank? %>
-
<%= link_to t("proposals.index.retired_proposals_link"), proposals_path(retired: 'all'), class: "small" %>
+
<%= link_to t("proposals.index.retired_proposals_link"), proposals_path(retired: "all"), class: "small" %>
<% else %>
<% if user_signed_in? && current_user.organization? %>
-
+
<%= t("votes.organizations") %>
<% elsif user_signed_in? && !proposal.votable_by?(current_user) %>
-
+
<%= t("votes.verified_only",
verify_account: link_to(t("votes.verify_account"), verification_path )).html_safe %>
@@ -51,7 +51,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 %>
@@ -59,9 +59,9 @@
<% end %>
- <% if voted_for?(@proposal_votes, proposal) && setting['twitter_handle'] %>
+ <% if voted_for?(@proposal_votes, proposal) && setting["twitter_handle"] %>
- <%= render 'proposals/social_share', proposal: proposal, share_title: false %>
+ <%= render "proposals/social_share", proposal: proposal, share_title: false %>
<% end %>
diff --git a/app/views/proposals/index.html.erb b/app/views/proposals/index.html.erb
index 0e19f0795..fff4a7bed 100644
--- a/app/views/proposals/index.html.erb
+++ b/app/views/proposals/index.html.erb
@@ -37,7 +37,7 @@
<%= render "shared/section_header", i18n_namespace: "proposals.index.section_header", image: "proposals" %>
<% end %>
- <% if feature?('user.recommendations') && @recommended_proposals.present? %>
+ <% if feature?("user.recommendations") && @recommended_proposals.present? %>
<%= render "shared/recommended_index", recommended: @recommended_proposals,
disable_recommendations_path: recommendations_disable_proposals_path,
namespace: "proposals" %>
@@ -71,23 +71,23 @@
<%= render("shared/advanced_search", search_path: proposals_path(page: 1)) unless params[:retired].present? %>
- <%= render 'shared/order_links', i18n_namespace: "proposals.index" %>
+ <%= render "shared/order_links", i18n_namespace: "proposals.index" %>
<% if @proposals.any? %>
<%= link_to t("proposals.index.start_proposal"),
new_proposal_path,
- class: 'button expanded' %>
+ class: "button expanded" %>
<% end %>
<% if @proposals.any? || current_user.blank? %>
<% if proposals_default_view? %>
- <%= render partial: 'proposals/proposal', collection: @proposals %>
+ <%= render partial: "proposals/proposal", collection: @proposals %>
<% else %>
<% @proposals.each do |proposal| %>
- <%= render partial: '/proposals/proposal_minimal', locals: { proposal: proposal } %>
+ <%= render partial: "/proposals/proposal_minimal", locals: { proposal: proposal } %>
<% end %>
<% end %>
<% else %>
@@ -110,14 +110,14 @@
diff --git a/app/views/proposals/map.html.erb b/app/views/proposals/map.html.erb
index 84c7721f2..10dbf795f 100644
--- a/app/views/proposals/map.html.erb
+++ b/app/views/proposals/map.html.erb
@@ -1 +1 @@
-<%= render 'shared/map', new_url_path: new_proposal_path %>
+<%= render "shared/map", new_url_path: new_proposal_path %>
diff --git a/app/views/proposals/new.html.erb b/app/views/proposals/new.html.erb
index 879820f17..f3d841341 100644
--- a/app/views/proposals/new.html.erb
+++ b/app/views/proposals/new.html.erb
@@ -5,7 +5,7 @@
<%= t("proposals.new.start_new") %>
- <%= link_to help_path(anchor: "proposals"), title: t('shared.target_blank_html'), target: "_blank" do %>
+ <%= link_to help_path(anchor: "proposals"), title: t("shared.target_blank_html"), target: "_blank" do %>
<%= t("proposals.new.more_info")%>
<% end %>
diff --git a/app/views/proposals/retire_form.html.erb b/app/views/proposals/retire_form.html.erb
index d56277cb3..501a2ce22 100644
--- a/app/views/proposals/retire_form.html.erb
+++ b/app/views/proposals/retire_form.html.erb
@@ -11,7 +11,7 @@
<%= form_for(@proposal, url: retire_proposal_path(@proposal)) do |f| %>
- <%= render 'shared/errors', resource: @proposal %>
+ <%= render "shared/errors", resource: @proposal %>
<%= f.label :retired_reason, t("proposals.retire_form.retired_reason_label") %>
@@ -23,7 +23,7 @@
<%= f.label :retired_explanation, t("proposals.retire_form.retired_explanation_label") %>
<%= f.text_area :retired_explanation, rows: 4, maxlength: 500, label: false,
- placeholder: t('proposals.retire_form.retired_explanation_placeholder') %>
+ placeholder: t("proposals.retire_form.retired_explanation_placeholder") %>
@@ -35,4 +35,4 @@
<% end %>
-
\ No newline at end of file
+
diff --git a/app/views/proposals/share.html.erb b/app/views/proposals/share.html.erb
index 1df757f46..e392a7683 100644
--- a/app/views/proposals/share.html.erb
+++ b/app/views/proposals/share.html.erb
@@ -21,7 +21,7 @@
<%= t("proposals.proposal.share.edit") %>
- <%= render partial: 'shared/social_share', locals: {
+ <%= render partial: "shared/social_share", locals: {
title: @proposal.title,
url: proposal_url(@proposal),
description: @proposal.summary,
diff --git a/app/views/proposals/show.html.erb b/app/views/proposals/show.html.erb
index 3ac5e03df..bcba18a81 100644
--- a/app/views/proposals/show.html.erb
+++ b/app/views/proposals/show.html.erb
@@ -38,11 +38,11 @@
<% end %>
<%= render "proposals/info", proposal: @proposal %>
- <%= render 'shared/geozone', geozonable: @proposal %>
- <%= render 'relationable/related_content', relationable: @proposal %>
+ <%= render "shared/geozone", geozonable: @proposal %>
+ <%= render "relationable/related_content", relationable: @proposal %>
- <%= render 'proposals/actions', proposal: @proposal %>
+ <%= render "proposals/actions", proposal: @proposal %>
@@ -53,7 +53,7 @@
<% else %>
- <%= render 'votes',
- { proposal: @proposal, vote_url: vote_proposal_path(@proposal, value: 'yes') } %>
+ <%= render "votes",
+ { proposal: @proposal, vote_url: vote_proposal_path(@proposal, value: "yes") } %>
<% end %>
- <%= render 'proposals/social_share', proposal: @proposal, share_title: t("proposals.show.share") %>
+ <%= render "proposals/social_share", proposal: @proposal, share_title: t("proposals.show.share") %>
<% if current_user %>
- <%= render 'follows/follow_button', follow: find_or_build_follow(current_user, @proposal) %>
+ <%= render "follows/follow_button", follow: find_or_build_follow(current_user, @proposal) %>
<% end %>
- <%= render 'communities/access_button', community: @proposal.community %>
+ <%= render "communities/access_button", community: @proposal.community %>
diff --git a/app/views/proposals/summary.html.erb b/app/views/proposals/summary.html.erb
index a28cf8750..211d9891a 100644
--- a/app/views/proposals/summary.html.erb
+++ b/app/views/proposals/summary.html.erb
@@ -43,11 +43,11 @@
@@ -16,7 +16,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 %>