diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb
index da8e74528..f6e62791d 100644
--- a/app/views/devise/sessions/new.html.erb
+++ b/app/views/devise/sessions/new.html.erb
@@ -1,7 +1,7 @@
<% provide :title do %><%= t("devise_views.sessions.new.title") %><% end %>
-<%= render 'devise/omniauth_form' %>
+<%= render "devise/omniauth_form" %>
<%= t("devise_views.shared.links.signup",
@@ -22,7 +22,7 @@
<% if devise_mapping.rememberable? -%>
<%= f.label :remember_me do %>
- <%= f.check_box :remember_me, title: t('devise_views.sessions.new.remember_me'), label: false %>
+ <%= f.check_box :remember_me, title: t("devise_views.sessions.new.remember_me"), label: false %>
<%= t("devise_views.sessions.new.remember_me") %>
<% end %>
diff --git a/app/views/devise/shared/_links.html.erb b/app/views/devise/shared/_links.html.erb
index 3f2eaed81..56b993266 100644
--- a/app/views/devise/shared/_links.html.erb
+++ b/app/views/devise/shared/_links.html.erb
@@ -1,31 +1,31 @@
- <%- if controller_name != 'sessions' %>
+ <%- if controller_name != "sessions" %>
<%= link_to t("devise_views.shared.links.login"), new_session_path(resource_name) %>
<% end -%>
<%#- if devise_mapping.registerable? &&
- controller_name != 'registrations' ||
- controller_path != 'users/registrations' %>
+ controller_name != "registrations" ||
+ controller_path != "users/registrations" %>
<%#= link_to t("devise_views.shared.links.signup"), new_user_registration_path %>
<%# end -%>
- <%#- if devise_mapping.registerable? && controller_name == 'registrations' && controller_path != 'organizations/registrations' %>
+ <%#- if devise_mapping.registerable? && controller_name == "registrations" && controller_path != "organizations/registrations" %>
<%#= link_to t("devise_views.shared.links.organization_signup"), new_organization_registration_path %>
<%# end -%>
- <%#- if devise_mapping.recoverable? && controller_name != 'passwords' && controller_name != 'registrations' %>
+ <%#- if devise_mapping.recoverable? && controller_name != "passwords" && controller_name != "registrations" %>
<%#= link_to t("devise_views.shared.links.new_password"), new_password_path(resource_name) %>
<%# end -%>
- <%- if devise_mapping.confirmable? && controller_name != 'confirmations' %>
+ <%- if devise_mapping.confirmable? && controller_name != "confirmations" %>
<%= link_to t("devise_views.shared.links.new_confirmation"), new_confirmation_path(resource_name) %>
<% end -%>
- <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks' %>
+ <%- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != "unlocks" %>
<%= link_to t("devise_views.shared.links.new_unlock"), new_unlock_path(resource_name) %>
<% end -%>
- <%- if devise_mapping.omniauthable? && devise_mapping.name == 'user' %>
+ <%- if devise_mapping.omniauthable? && devise_mapping.name == "user" %>
<%- resource_class.omniauth_providers.each do |provider| %>
<%= link_to t("devise_views.shared.links.signin_with_provider", provider: provider.to_s.titleize), omniauth_authorize_path(resource_name, provider) %>
<% end -%>
diff --git a/app/views/devise/unlocks/new.html.erb b/app/views/devise/unlocks/new.html.erb
index bd1f070ac..ee0651187 100644
--- a/app/views/devise/unlocks/new.html.erb
+++ b/app/views/devise/unlocks/new.html.erb
@@ -1,7 +1,7 @@
<%= t("devise_views.unlocks.new.title") %>
<%= form_for(resource, as: resource_name, url: unlock_path(resource_name), html: { method: :post }) do |f| %>
- <%= render 'shared/errors', resource: resource %>
+ <%= render "shared/errors", resource: resource %>
<%= f.email_field :email, autofocus: true,
diff --git a/app/views/documents/_additional_documents.html.erb b/app/views/documents/_additional_documents.html.erb
index 383ce4ea0..dc73f33f4 100644
--- a/app/views/documents/_additional_documents.html.erb
+++ b/app/views/documents/_additional_documents.html.erb
@@ -4,9 +4,9 @@
- <%= t('proposals.show.title_external_url') %>
+ <%= t("proposals.show.title_external_url") %>
- <%= render partial: 'documents/additional_document', collection: documents, as: :document %>
+ <%= render partial: "documents/additional_document", collection: documents, as: :document %>
diff --git a/app/views/documents/_nested_documents.html.erb b/app/views/documents/_nested_documents.html.erb
index a72cbe270..8a4814aee 100644
--- a/app/views/documents/_nested_documents.html.erb
+++ b/app/views/documents/_nested_documents.html.erb
@@ -4,11 +4,11 @@
<%= f.fields_for :documents do |documents_builder| %>
- <%= render 'documents/document_fields', f: documents_builder %>
+ <%= render "documents/document_fields", f: documents_builder %>
<% end %>
- <%= link_to_add_association t('documents.form.add_new_document'), f, :documents,
+ <%= link_to_add_association t("documents.form.add_new_document"), f, :documents,
partial: "documents/document_fields",
id: "new_document_link",
class: "button hollow #{"hide" if documentable.documents.count >= documentable.class.max_documents_allowed}",
diff --git a/app/views/follows/_follow_button.html.erb b/app/views/follows/_follow_button.html.erb
index 1d32228ce..3b1305867 100644
--- a/app/views/follows/_follow_button.html.erb
+++ b/app/views/follows/_follow_button.html.erb
@@ -1,11 +1,11 @@
<% if follow.followable.followed_by?(current_user) %>
- <%= link_to t('shared.following'),
+ <%= link_to t("shared.following"),
follow_path(follow),
method: :delete, remote: true,
title: unfollow_text(follow.followable),
- class: 'button expanded' %>
+ class: "button expanded" %>
<% else %>
<%= link_to follow_text(follow.followable),
@@ -13,7 +13,7 @@
followable_type: follow.followable.class.name),
method: :post, remote: true,
title: follow_text(follow.followable),
- class: 'button hollow expanded' %>
+ class: "button hollow expanded" %>
<% end %>
diff --git a/app/views/images/_admin_image.html.erb b/app/views/images/_admin_image.html.erb
index d466f1cac..95ce0c752 100644
--- a/app/views/images/_admin_image.html.erb
+++ b/app/views/images/_admin_image.html.erb
@@ -2,7 +2,7 @@
<%= f.label :image, t("images.form.admin_title") %>
- <%= link_to_add_association t('images.form.add_new_image'), f, :image,
+ <%= link_to_add_association t("images.form.add_new_image"), f, :image,
force_non_association_create: true,
partial: "images/image_fields",
id: "new_image_link",
diff --git a/app/views/images/_nested_image.html.erb b/app/views/images/_nested_image.html.erb
index 881c29168..81783eff3 100644
--- a/app/views/images/_nested_image.html.erb
+++ b/app/views/images/_nested_image.html.erb
@@ -5,11 +5,11 @@
<%= f.fields_for image_fields do |image_builder| %>
- <%= render 'images/image_fields', f: image_builder, imageable: imageable %>
+ <%= render "images/image_fields", f: image_builder, imageable: imageable %>
<% end %>
-<%= link_to_add_association t('images.form.add_new_image'), f, image_fields,
+<%= link_to_add_association t("images.form.add_new_image"), f, image_fields,
force_non_association_create: true,
partial: "images/image_fields",
id: "new_image_link",
diff --git a/app/views/mailer/budget_investment_created.html.erb b/app/views/mailer/budget_investment_created.html.erb
index 00910327a..8942a1606 100644
--- a/app/views/mailer/budget_investment_created.html.erb
+++ b/app/views/mailer/budget_investment_created.html.erb
@@ -25,8 +25,8 @@
<%= link_to budget_investment_url(@investment.budget, @investment, anchor: "social-share"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block;" do %>
- <%= image_tag('icon_mailer_share.png', style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
- <%= t('mailers.budget_investment_created.share') %>
+ <%= image_tag("icon_mailer_share.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
+ <%= t("mailers.budget_investment_created.share") %>
<% end %>
diff --git a/app/views/mailer/budget_investment_selected.html.erb b/app/views/mailer/budget_investment_selected.html.erb
index 3271add90..876c73443 100644
--- a/app/views/mailer/budget_investment_selected.html.erb
+++ b/app/views/mailer/budget_investment_selected.html.erb
@@ -13,8 +13,8 @@
<%= link_to budget_investment_url(@investment.budget, @investment, anchor: "social-share"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66 !important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block;" do %>
- <%= image_tag('icon_mailer_share.png', style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
- <%= t('mailers.budget_investment_selected.share_button') %>
+ <%= image_tag("icon_mailer_share.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
+ <%= t("mailers.budget_investment_selected.share_button") %>
<% end %>
@@ -28,4 +28,4 @@
<%= t("mailers.budget_investment_selected.sincerely") %>
-
\ No newline at end of file
+
diff --git a/app/views/mailer/direct_message_for_receiver.html.erb b/app/views/mailer/direct_message_for_receiver.html.erb
index ac86b994a..8a8a2541c 100644
--- a/app/views/mailer/direct_message_for_receiver.html.erb
+++ b/app/views/mailer/direct_message_for_receiver.html.erb
@@ -12,8 +12,8 @@
<%= link_to user_url(@direct_message.sender), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 200px; display: inline-block;", target: "_blank" do %>
- <%= image_tag('icon_mailer_reply.png', style: "border: 0; display: inline-block; width: 100%; max-width: 12px; vertical-align: sub;", alt: "") %>
- <%= t('mailers.direct_message_for_receiver.reply',
+ <%= image_tag("icon_mailer_reply.png", style: "border: 0; display: inline-block; width: 100%; max-width: 12px; vertical-align: sub;", alt: "") %>
+ <%= t("mailers.direct_message_for_receiver.reply",
sender: @direct_message.sender.name) %>
<% end %>
@@ -26,8 +26,8 @@
- <%= t('mailers.direct_message_for_receiver.unsubscribe',
- account: link_to(t('mailers.direct_message_for_receiver.unsubscribe_account'),
+ <%= t("mailers.direct_message_for_receiver.unsubscribe",
+ account: link_to(t("mailers.direct_message_for_receiver.unsubscribe_account"),
account_url, style: "color: #2895F1; text-decoration: none;")).html_safe %>
diff --git a/app/views/mailer/direct_message_for_sender.html.erb b/app/views/mailer/direct_message_for_sender.html.erb
index 127526cf4..cc4ee29f4 100644
--- a/app/views/mailer/direct_message_for_sender.html.erb
+++ b/app/views/mailer/direct_message_for_sender.html.erb
@@ -1,7 +1,7 @@
- <%= t('mailers.direct_message_for_sender.title_html',
+ <%= t("mailers.direct_message_for_sender.title_html",
receiver: @direct_message.receiver.name ) %>
diff --git a/app/views/mailer/email_verification.html.erb b/app/views/mailer/email_verification.html.erb
index 040fb76ba..406398ade 100644
--- a/app/views/mailer/email_verification.html.erb
+++ b/app/views/mailer/email_verification.html.erb
@@ -6,7 +6,7 @@
<%= t("mailers.email_verification.instructions_html",
verification_link: link_to(
- t('mailers.email_verification.click_here_to_verify'),
+ t("mailers.email_verification.click_here_to_verify"),
email_url(email_verification_token: @token))) %>
diff --git a/app/views/mailer/proposal_notification_digest.html.erb b/app/views/mailer/proposal_notification_digest.html.erb
index 8f80c3e0c..671c5ffad 100644
--- a/app/views/mailer/proposal_notification_digest.html.erb
+++ b/app/views/mailer/proposal_notification_digest.html.erb
@@ -4,12 +4,12 @@
- <%= t('mailers.proposal_notification_digest.title',
- org_name: Setting['org_name']) %>
+ <%= t("mailers.proposal_notification_digest.title",
+ org_name: Setting["org_name"]) %>
- <%= t('mailers.proposal_notification_digest.info',
- org_name: Setting['org_name']) %>
+ <%= t("mailers.proposal_notification_digest.info",
+ org_name: Setting["org_name"]) %>
@@ -38,13 +38,13 @@
<%= link_to proposal_url(notification.notifiable.proposal, anchor: "social-share"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block;" do %>
- <%= image_tag('icon_mailer_share.png', style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
- <%= t('mailers.proposal_notification_digest.share') %>
+ <%= image_tag("icon_mailer_share.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px", alt: "") %>
+ <%= t("mailers.proposal_notification_digest.share") %>
<% end %>
<%= link_to proposal_url(notification.notifiable.proposal, anchor: "comments"), style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #f7f5f2; border-radius: 6px; color: #3d3d66!important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block; margin-left: 12px;" do %>
- <%= image_tag('icon_mailer_comment.png', style: "border: 0; display: inline-block; width: 100%; max-width: 16px; vertical-align: middle;", alt: "") %>
- <%= t('mailers.proposal_notification_digest.comment') %>
+ <%= image_tag("icon_mailer_comment.png", style: "border: 0; display: inline-block; width: 100%; max-width: 16px; vertical-align: middle;", alt: "") %>
+ <%= t("mailers.proposal_notification_digest.comment") %>
<% end %>
@@ -61,8 +61,8 @@
- <%= t('mailers.proposal_notification_digest.unsubscribe',
- account: link_to(t('mailers.proposal_notification_digest.unsubscribe_account'),
+ <%= t("mailers.proposal_notification_digest.unsubscribe",
+ account: link_to(t("mailers.proposal_notification_digest.unsubscribe_account"),
account_url, style: "color: #2895F1; text-decoration: none;")).html_safe %>
diff --git a/app/views/mailer/user_invite.html.erb b/app/views/mailer/user_invite.html.erb
index 43b95626c..9cad28493 100644
--- a/app/views/mailer/user_invite.html.erb
+++ b/app/views/mailer/user_invite.html.erb
@@ -1,23 +1,23 @@
- <%= t('mailers.user_invite.title',
- org: Setting['org_name']) %>
+ <%= t("mailers.user_invite.title",
+ org: Setting["org_name"]) %>
- <%= t('mailers.user_invite.text',
- org: Setting['org_name']) %>
+ <%= t("mailers.user_invite.text",
+ org: Setting["org_name"]) %>
- <%= link_to t('mailers.user_invite.button'), new_user_registration_url, style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #004A83; border-radius: 6px; color: #fff !important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block; margin-left: 12px;" %>
+ <%= link_to t("mailers.user_invite.button"), new_user_registration_url, style: "font-family: 'Open Sans','Helvetica Neue',arial,sans-serif; background: #004A83; border-radius: 6px; color: #fff !important; font-weight: bold; margin: 0px; padding: 10px 15px; text-align: center; text-decoration: none; min-width: 160px; display: inline-block; margin-left: 12px;" %>
- <%= t('mailers.user_invite.ignore') %>
+ <%= t("mailers.user_invite.ignore") %>
- <%= t('mailers.user_invite.thanks') %>
+ <%= t("mailers.user_invite.thanks") %>
diff --git a/app/views/map_locations/_form_fields.html.erb b/app/views/map_locations/_form_fields.html.erb
index f09662649..344287993 100644
--- a/app/views/map_locations/_form_fields.html.erb
+++ b/app/views/map_locations/_form_fields.html.erb
@@ -6,23 +6,23 @@
<%= form.fields_for :map_location, map_location do |m_l_fields| %>
<%= m_l_fields.hidden_field :id,
value: map_location.id,
- id: map_location_input_id(parent_class, 'id') %>
+ id: map_location_input_id(parent_class, "id") %>
<%= m_l_fields.hidden_field :latitude,
value: map_location.latitude,
- id: map_location_input_id(parent_class, 'latitude') %>
+ id: map_location_input_id(parent_class, "latitude") %>
<%= m_l_fields.hidden_field :longitude,
value: map_location.longitude,
- id: map_location_input_id(parent_class, 'longitude') %>
+ id: map_location_input_id(parent_class, "longitude") %>
<%= m_l_fields.hidden_field :zoom,
value: map_location.zoom,
- id: map_location_input_id(parent_class, 'zoom') %>
+ id: map_location_input_id(parent_class, "zoom") %>
<%= form.label :skip_map do %>
<%= form.check_box :skip_map,
title: t("#{i18n_namespace}.form.map_skip_checkbox"),
label: false,
- class: 'js-toggle-map' %>
+ class: "js-toggle-map" %>
<%= t("#{i18n_namespace}.form.map_skip_checkbox") %>
diff --git a/app/views/notifications/_notification.html.erb b/app/views/notifications/_notification.html.erb
index 5034d29a2..628a54c9c 100644
--- a/app/views/notifications/_notification.html.erb
+++ b/app/views/notifications/_notification.html.erb
@@ -4,7 +4,7 @@
timestamp: notification.timestamp,
title: notification.notifiable_title,
body: notification.notifiable.try(:body) } %>
- <% link_text = render partial: '/notifications/notification_body', locals: locals %>
+ <% link_text = render partial: "/notifications/notification_body", locals: locals %>
<%= link_to_if notification.link.present?, link_text, notification.link %>
<% else %>
diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb
index e005aad88..0e7bd8f41 100644
--- a/app/views/notifications/index.html.erb
+++ b/app/views/notifications/index.html.erb
@@ -25,7 +25,7 @@
<% else %>
<% @notifications.each do |notification| %>
- <%= render partial: '/notifications/notification', locals: {notification: notification} %>
+ <%= render partial: "/notifications/notification", locals: {notification: notification} %>
<% end %>
<% end %>
diff --git a/app/views/organizations/registrations/new.html.erb b/app/views/organizations/registrations/new.html.erb
index 40d8c5d05..e6491bcf1 100644
--- a/app/views/organizations/registrations/new.html.erb
+++ b/app/views/organizations/registrations/new.html.erb
@@ -2,7 +2,7 @@
<%= t("devise_views.organizations.registrations.new.title") %>
<%= form_for(resource, as: :user, url: organization_registration_path) do |f| %>
- <%= render 'shared/errors', resource: resource %>
+ <%= render "shared/errors", resource: resource %>
@@ -29,10 +29,10 @@
placeholder: t("devise_views.organizations.registrations.new.password_confirmation_label") %>
<%= f.label :terms_of_service do %>
- <%= f.check_box :terms_of_service, title: t('devise_views.users.registrations.new.terms_title'), label: false %>
+ <%= f.check_box :terms_of_service, title: t("devise_views.users.registrations.new.terms_title"), label: false %>
<%= t("devise_views.users.registrations.new.terms",
- terms: link_to(t("devise_views.users.registrations.new.terms_link"), "/conditions", title: t('shared.target_blank_html'), target: "_blank")).html_safe %>
+ terms: link_to(t("devise_views.users.registrations.new.terms_link"), "/conditions", title: t("shared.target_blank_html"), target: "_blank")).html_safe %>
<% end %>
diff --git a/app/views/pages/custom_page.html.erb b/app/views/pages/custom_page.html.erb
index 2af339117..e2c6bbeb1 100644
--- a/app/views/pages/custom_page.html.erb
+++ b/app/views/pages/custom_page.html.erb
@@ -14,7 +14,7 @@
<% if @custom_page.print_content_flag %>
- <%= render '/shared/print' %>
+ <%= render "/shared/print" %>
<% end %>
diff --git a/app/views/pages/help/_debates.html.erb b/app/views/pages/help/_debates.html.erb
index a70d8b05b..26c0fcfdd 100644
--- a/app/views/pages/help/_debates.html.erb
+++ b/app/views/pages/help/_debates.html.erb
@@ -5,14 +5,14 @@
<%= t("pages.help.debates.description",
- org: setting['org_name'],
+ org: setting["org_name"],
link: link_to(t("pages.help.debates.link"),
debates_path)).html_safe %>
<%= t("pages.help.debates.feature_html",
- link: link_to(t("pages.help.debates.feature_link", org: setting['org_name']),
+ link: link_to(t("pages.help.debates.feature_link", org: setting["org_name"]),
new_user_registration_path)).html_safe %>
diff --git a/app/views/pages/help/_other.html.erb b/app/views/pages/help/_other.html.erb
index bdae779d8..35d915056 100644
--- a/app/views/pages/help/_other.html.erb
+++ b/app/views/pages/help/_other.html.erb
@@ -1,7 +1,7 @@
<%= t("pages.help.other.title") %>
- <%= link_to t("pages.help.other.how_to_use", org_name: setting['org_name']), how_to_use_path %>
+ <%= link_to t("pages.help.other.how_to_use", org_name: setting["org_name"]), how_to_use_path %>
<% SiteCustomization::Page.with_more_info_flag.with_same_locale.each do |custom_page| %>
<%= link_to custom_page.title, page_path(custom_page.slug) %>
diff --git a/app/views/pages/help/_polls.html.erb b/app/views/pages/help/_polls.html.erb
index 1605169b9..c63aac6b8 100644
--- a/app/views/pages/help/_polls.html.erb
+++ b/app/views/pages/help/_polls.html.erb
@@ -8,7 +8,7 @@
<%= t("pages.help.polls.feature_1",
- link: link_to(t("pages.help.polls.feature_1_link", org_name: setting['org_name']),
+ link: link_to(t("pages.help.polls.feature_1_link", org_name: setting["org_name"]),
new_user_registration_path)).html_safe %>
diff --git a/app/views/pages/help/how_to_use/index.html.erb b/app/views/pages/help/how_to_use/index.html.erb
index 096a4d7cb..7cec1589e 100644
--- a/app/views/pages/help/how_to_use/index.html.erb
+++ b/app/views/pages/help/how_to_use/index.html.erb
@@ -8,8 +8,8 @@
<%= back_link_to help_path %>
<% end %>
- <%= t('pages.help.titles.how_to_use') %>
+ <%= t("pages.help.titles.how_to_use") %>
- <%= markdown t('pages.help.how_to_use.text') %>
+ <%= markdown t("pages.help.how_to_use.text") %>
diff --git a/app/views/pages/help/index.html.erb b/app/views/pages/help/index.html.erb
index fd989c23d..c31b615a9 100644
--- a/app/views/pages/help/index.html.erb
+++ b/app/views/pages/help/index.html.erb
@@ -1,4 +1,4 @@
-<% provide :title do %><%= t("pages.titles.help", org: setting['org_name']) %><% end %>
+<% provide :title do %><%= t("pages.titles.help", org: setting["org_name"]) %><% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: help_url %>
<% end %>
@@ -10,8 +10,8 @@
-
<%= t("pages.help.title", org: setting['org_name']) %>
-
<%= t("pages.help.guide", org: setting['org_name']) %>
+
<%= t("pages.help.title", org: setting["org_name"]) %>
+
<%= t("pages.help.guide", org: setting["org_name"]) %>
diff --git a/app/views/polls/_callout.html.erb b/app/views/polls/_callout.html.erb
index 3044b775a..24dc2d775 100644
--- a/app/views/polls/_callout.html.erb
+++ b/app/views/polls/_callout.html.erb
@@ -7,16 +7,16 @@
<% elsif current_user.unverified? %>
- <%= t('polls.show.cant_answer_verify_html',
- verify_link: link_to(t('polls.show.verify_link'), verification_path)) %>
+ <%= t("polls.show.cant_answer_verify_html",
+ verify_link: link_to(t("polls.show.verify_link"), verification_path)) %>
<% elsif @poll.expired? %>
- <%= t('polls.show.cant_answer_expired') %>
+ <%= t("polls.show.cant_answer_expired") %>
<% else %>
- <%= t('polls.show.cant_answer_wrong_geozone') %>
+ <%= t("polls.show.cant_answer_wrong_geozone") %>
<% end %>
<% end %>
diff --git a/app/views/polls/_comments.html.erb b/app/views/polls/_comments.html.erb
index 09b59cee6..f8b9a72b6 100644
--- a/app/views/polls/_comments.html.erb
+++ b/app/views/polls/_comments.html.erb
@@ -1,10 +1,10 @@
<% cache [locale_and_user_status, @current_order, commentable_cache_key(@poll), @comment_tree.comments, @comment_tree.comment_authors, @poll.comments_count, @comment_flags] do %>
- <%= render partial: 'shared/social_share', locals: {
+ <%= render partial: "shared/social_share", locals: {
share_title: t("shared.share"),
title: @poll.name,
url: poll_url(@poll),
diff --git a/app/views/polls/index.html.erb b/app/views/polls/index.html.erb
index 6967be004..8f5912cda 100644
--- a/app/views/polls/index.html.erb
+++ b/app/views/polls/index.html.erb
@@ -18,7 +18,7 @@
<% end %>
- <%= render 'shared/filter_subnav', i18n_namespace: "polls.index" %>
+ <%= render "shared/filter_subnav", i18n_namespace: "polls.index" %>
<% if @polls.any? %>
<% polls_by_geozone_restriction = @polls.group_by(&:geozone_restricted) %>
@@ -27,14 +27,14 @@
<%= t("polls.index.no_geozone_restricted") %>
- <%= render partial: 'poll_group', locals: {poll_group: polls_by_geozone_restriction[false]} %>
+ <%= render partial: "poll_group", locals: {poll_group: polls_by_geozone_restriction[false]} %>
<% end %>
<% if polls_by_geozone_restriction[true].present? %>
<%= t("polls.index.geozone_restricted") %>
- <%= render partial: 'poll_group', locals: {poll_group: polls_by_geozone_restriction[true]} %>
+ <%= render partial: "poll_group", locals: {poll_group: polls_by_geozone_restriction[true]} %>
<% end %>
<%= paginate @polls %>
diff --git a/app/views/polls/questions/_question.html.erb b/app/views/polls/questions/_question.html.erb
index b0df3fb42..016c0fa95 100644
--- a/app/views/polls/questions/_question.html.erb
+++ b/app/views/polls/questions/_question.html.erb
@@ -4,6 +4,6 @@
- <%= render 'polls/questions/answers', question: question, token: token %>
+ <%= render "polls/questions/answers", question: question, token: token %>
diff --git a/app/views/polls/show.html.erb b/app/views/polls/show.html.erb
index 3aca5950b..9d52fe23a 100644
--- a/app/views/polls/show.html.erb
+++ b/app/views/polls/show.html.erb
@@ -23,12 +23,12 @@
<% end %>
<% @questions.each do |question| %>
- <%= render 'polls/questions/question', question: question, token: @token %>
+ <%= render "polls/questions/question", question: question, token: @token %>
<% end %>
<% if poll_voter_token(@poll, current_user).empty? %>
- <%= t('poll_questions.show.voted_token') %>
+ <%= t("poll_questions.show.voted_token") %>
<% end %>
diff --git a/app/views/relationable/_form.html.erb b/app/views/relationable/_form.html.erb
index 930c839a2..acab65165 100644
--- a/app/views/relationable/_form.html.erb
+++ b/app/views/relationable/_form.html.erb
@@ -2,14 +2,14 @@
<%= t("related_content.label") %>
- <%= t("related_content.help", models: t('related_content.content_title').values.to_sentence, org: setting['org_name']) %>
+ <%= t("related_content.help", models: t("related_content.content_title").values.to_sentence, org: setting["org_name"]) %>
diff --git a/app/views/relationable/_related_list.html.erb b/app/views/relationable/_related_list.html.erb
index 5a89aa25a..f29ee4814 100644
--- a/app/views/relationable/_related_list.html.erb
+++ b/app/views/relationable/_related_list.html.erb
@@ -4,7 +4,7 @@
<% related_content = related.find_related_content(relationable) %>
<% if current_user && related_content.author != current_user && !related_content.scored_by_user?(current_user)%>
- <%= render 'relationable/score', related: related_content %>
+ <%= render "relationable/score", related: related_content %>
<% end %>
<%= t("related_content.content_title.#{related.model_name.singular}") %>
diff --git a/app/views/spending_proposals/_form.html.erb b/app/views/spending_proposals/_form.html.erb
index 2976b1803..2694783b1 100644
--- a/app/views/spending_proposals/_form.html.erb
+++ b/app/views/spending_proposals/_form.html.erb
@@ -1,5 +1,5 @@
<%= form_for(@spending_proposal, url: form_url) do |f| %>
- <%= render 'shared/errors', resource: @spending_proposal %>
+ <%= render "shared/errors", resource: @spending_proposal %>
@@ -32,7 +32,7 @@
<% if @spending_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/spending_proposals/_sidebar.html.erb b/app/views/spending_proposals/_sidebar.html.erb
index fc6878698..cb88e16e7 100644
--- a/app/views/spending_proposals/_sidebar.html.erb
+++ b/app/views/spending_proposals/_sidebar.html.erb
@@ -2,8 +2,8 @@
- <%= link_to t('geozones.all'), spending_proposals_path(geozone: nil) %>
- <%= link_to t('geozones.none'), spending_proposals_path(geozone: 'all') %>
+ <%= link_to t("geozones.all"), spending_proposals_path(geozone: nil) %>
+ <%= link_to t("geozones.none"), spending_proposals_path(geozone: "all") %>
<% Geozone.all.each do |geozone| %>
<%= link_to geozone.name, spending_proposals_path(geozone: geozone.id) %>
<% end %>
@@ -12,4 +12,4 @@
-<%= link_to t('spending_proposals.index.sidebar.unfeasible'), spending_proposals_path(unfeasible: '1') %>
\ No newline at end of file
+<%= link_to t("spending_proposals.index.sidebar.unfeasible"), spending_proposals_path(unfeasible: "1") %>
diff --git a/app/views/spending_proposals/_spending_proposal.html.erb b/app/views/spending_proposals/_spending_proposal.html.erb
index 62e027913..b1530cb40 100644
--- a/app/views/spending_proposals/_spending_proposal.html.erb
+++ b/app/views/spending_proposals/_spending_proposal.html.erb
@@ -5,7 +5,7 @@
- <% cache [locale_and_user_status(spending_proposal), 'index', spending_proposal, spending_proposal.author] do %>
+ <% cache [locale_and_user_status(spending_proposal), "index", spending_proposal, spending_proposal.author] do %>
<%= t("spending_proposals.spending_proposal.spending_proposal") %>
<%= link_to spending_proposal.title, namespaced_spending_proposal_path(spending_proposal) %>
@@ -50,8 +50,8 @@
- <%= render 'votes',
- { spending_proposal: spending_proposal, vote_url: vote_spending_proposal_path(spending_proposal, value: 'yes') } %>
+ <%= render "votes",
+ { spending_proposal: spending_proposal, vote_url: vote_spending_proposal_path(spending_proposal, value: "yes") } %>
diff --git a/app/views/spending_proposals/_votes.html.erb b/app/views/spending_proposals/_votes.html.erb
index 647f4ff88..8ad231d80 100644
--- a/app/views/spending_proposals/_votes.html.erb
+++ b/app/views/spending_proposals/_votes.html.erb
@@ -16,7 +16,7 @@
<% elsif voting_allowed %>
<%= link_to vote_url,
class: "button button-support small expanded",
- title: t('spending_proposals.spending_proposal.support_title'), method: "post", remote: true,
+ title: t("spending_proposals.spending_proposal.support_title"), method: "post", remote: true,
"aria-hidden" => css_for_aria_hidden(reason) do %>
<%= t("spending_proposals.spending_proposal.support") %>
<% end %>
@@ -24,7 +24,7 @@
<% if reason.present? && !user_voted_for %>
-
+
<%= t("votes.spending_proposals.#{reason}",
verify_account: link_to(t("votes.verify_account"), verification_path),
@@ -35,8 +35,8 @@
<% end %>
- <% if user_voted_for && setting['twitter_handle'] %>
- <%= render partial: 'shared/social_share', locals: {
+ <% if user_voted_for && setting["twitter_handle"] %>
+ <%= render partial: "shared/social_share", locals: {
title: spending_proposal.title,
url: spending_proposal_url(spending_proposal),
description: spending_proposal.title
diff --git a/app/views/spending_proposals/index.html.erb b/app/views/spending_proposals/index.html.erb
index 80959ce48..9431401ca 100644
--- a/app/views/spending_proposals/index.html.erb
+++ b/app/views/spending_proposals/index.html.erb
@@ -1,4 +1,4 @@
-<% provide :title do %><%= t('spending_proposals.index.title') %><% end %>
+<% provide :title do %><%= t("spending_proposals.index.title") %><% end %>
<% content_for :header_addon do %>
<%= render "shared/search_form",
search_path: spending_proposals_path(page: 1),
@@ -23,15 +23,15 @@
- <%= link_to t("spending_proposals.index.start_spending_proposal"), new_spending_proposal_path, class: 'button expanded' %>
+ <%= link_to t("spending_proposals.index.start_spending_proposal"), new_spending_proposal_path, class: "button expanded" %>
- <%= render partial: 'spending_proposals/spending_proposal', collection: @spending_proposals %>
+ <%= render partial: "spending_proposals/spending_proposal", collection: @spending_proposals %>
<%= paginate @spending_proposals %>
diff --git a/app/views/spending_proposals/new.html.erb b/app/views/spending_proposals/new.html.erb
index 99309f206..84251d36b 100644
--- a/app/views/spending_proposals/new.html.erb
+++ b/app/views/spending_proposals/new.html.erb
@@ -5,7 +5,7 @@
<%= t("spending_proposals.new.start_new") %>
- <%= link_to "/spending_proposals_info", title: t('shared.target_blank_html'), target: "_blank" do %>
+ <%= link_to "/spending_proposals_info", title: t("shared.target_blank_html"), target: "_blank" do %>
<%= t("spending_proposals.new.more_info")%>
<% end %>
@@ -22,4 +22,4 @@
-
\ No newline at end of file
+
diff --git a/app/views/spending_proposals/show.html.erb b/app/views/spending_proposals/show.html.erb
index c3ebb4517..55660b9ae 100644
--- a/app/views/spending_proposals/show.html.erb
+++ b/app/views/spending_proposals/show.html.erb
@@ -7,7 +7,7 @@
<%= @spending_proposal.title %>
- <%= render '/shared/author_info', resource: @spending_proposal %>
+ <%= render "/shared/author_info", resource: @spending_proposal %>
•
<%= l @spending_proposal.created_at.to_date %>
@@ -36,11 +36,11 @@
<%= t("votes.supports") %>
- <%= render 'votes',
- { spending_proposal: @spending_proposal, vote_url: vote_spending_proposal_path(@spending_proposal, value: 'yes') } %>
+ <%= render "votes",
+ { spending_proposal: @spending_proposal, vote_url: vote_spending_proposal_path(@spending_proposal, value: "yes") } %>
- <%= render partial: 'shared/social_share', locals: {
+ <%= render partial: "shared/social_share", locals: {
share_title: t("spending_proposals.show.share"),
title: @spending_proposal.title,
url: spending_proposal_url(@spending_proposal),
diff --git a/app/views/stats/index.json.erb b/app/views/stats/index.json.erb
index be3335bfc..4a6738bbe 100644
--- a/app/views/stats/index.json.erb
+++ b/app/views/stats/index.json.erb
@@ -1,12 +1,12 @@
{
- '<%= t('stats.index.visits') %>' : '<%= number_with_delimiter(@visits) %>',
- '<%= t('stats.index.debates') %>' : <%= number_with_delimiter(@debates) %>',
- '<%= t('stats.index.proposals') %>' : '<%= number_with_delimiter(@proposals) %>',
- '<%= t('stats.index.comments') %>' : '<%= number_with_delimiter(@comments) %>',
- '<%= t('stats.index.proposal_votes') %>' : '<%= number_with_delimiter(@proposal_votes) %>',
- '<%= t('stats.index.debate_votes') %>' : '<%= number_with_delimiter(@debate_votes) %>',
- '<%= t('stats.index.comment_votes') %>' : '<%= number_with_delimiter(@comment_votes) %>',
- '<%= t('stats.index.votes') %>' : '<%= number_with_delimiter(@votes) %>',
- '<%= t('stats.index.verified_users') %>' : '<%= number_with_delimiter(@verified_users) %>',
- '<%= t('stats.index.unverified_users') %>' : '<%= number_with_delimiter(@unverified_users) %>'
+ "<%= t('stats.index.visits') %>" : "<%= number_with_delimiter(@visits) %>",
+ "<%= t('stats.index.debates') %>" : <%= number_with_delimiter(@debates) %>",
+ "<%= t('stats.index.proposals') %>" : "<%= number_with_delimiter(@proposals) %>",
+ "<%= t('stats.index.comments') %>" : "<%= number_with_delimiter(@comments) %>",
+ "<%= t('stats.index.proposal_votes') %>" : "<%= number_with_delimiter(@proposal_votes) %>",
+ "<%= t('stats.index.debate_votes') %>" : "<%= number_with_delimiter(@debate_votes) %>",
+ "<%= t('stats.index.comment_votes') %>" : "<%= number_with_delimiter(@comment_votes) %>",
+ "<%= t('stats.index.votes') %>" : "<%= number_with_delimiter(@votes) %>",
+ "<%= t('stats.index.verified_users') %>" : "<%= number_with_delimiter(@verified_users) %>",
+ "<%= t('stats.index.unverified_users') %>" : "<%= number_with_delimiter(@unverified_users) %>"
}
\ No newline at end of file
diff --git a/app/views/topics/_comments.html.erb b/app/views/topics/_comments.html.erb
index db22c8097..bdd27c315 100644
--- a/app/views/topics/_comments.html.erb
+++ b/app/views/topics/_comments.html.erb
@@ -2,16 +2,16 @@