<%= investment.title %>
diff --git a/app/views/budgets/executions/show.html.erb b/app/views/budgets/executions/show.html.erb
index 91f50684a..c1abd1e5c 100644
--- a/app/views/budgets/executions/show.html.erb
+++ b/app/views/budgets/executions/show.html.erb
@@ -1,14 +1,14 @@
<% provide :title, t("budgets.executions.page_title", budget: @budget.name) %>
-<% content_for :meta_description do %><%= @budget.description_for_phase('finished') %><% end %>
+<% content_for :meta_description do %><%= @budget.description_for_phase("finished") %><% end %>
<% provide :social_media_meta_tags do %>
-<%= render 'shared/social_media_meta_tags',
+<%= render "shared/social_media_meta_tags",
social_url: budget_executions_url(@budget),
social_title: @budget.name,
- social_description: @budget.description_for_phase('finished') %>
+ social_description: @budget.description_for_phase("finished") %>
<% end %>
<% content_for :canonical do %>
- <%= render 'shared/canonical', href: budget_executions_url(@budget) %>
+ <%= render "shared/canonical", href: budget_executions_url(@budget) %>
<% end %>
@@ -32,7 +32,7 @@
<%= link_to t("budgets.results.link"), budget_results_path(@budget) %>
- <%= link_to t("budgets.executions.link"), budget_executions_path(@budget), class: 'is-active' %>
+ <%= link_to t("budgets.executions.link"), budget_executions_path(@budget), class: "is-active" %>
@@ -67,7 +67,7 @@
<% end %>
<% if @investments_by_heading.any? %>
- <%= render 'budgets/executions/investments' %>
+ <%= render "budgets/executions/investments" %>
<% else %>
<%= t("budgets.executions.no_winner_investments") %>
diff --git a/app/views/budgets/index.html.erb b/app/views/budgets/index.html.erb
index b27ccec4c..6216eb2af 100644
--- a/app/views/budgets/index.html.erb
+++ b/app/views/budgets/index.html.erb
@@ -2,7 +2,7 @@
<%= render "shared/banner" %>
<% end %>
-<% provide :title do %><%= t('budgets.index.title') %><% end %>
+<% provide :title do %><%= t("budgets.index.title") %><% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: budgets_url %>
diff --git a/app/views/budgets/investments/_ballot.html.erb b/app/views/budgets/investments/_ballot.html.erb
index c12103a0a..a94f0a5f2 100644
--- a/app/views/budgets/investments/_ballot.html.erb
+++ b/app/views/budgets/investments/_ballot.html.erb
@@ -10,7 +10,7 @@
<%= investment.formatted_price %>
<% if investment.should_show_ballots? %>
- <%= link_to t('budgets.ballots.show.remove'),
+ <%= link_to t("budgets.ballots.show.remove"),
budget_ballot_line_path(id: investment.id,
budget_id: investment.budget_id,
investments_ids: investment_ids),
@@ -32,7 +32,7 @@
budget_id: investment.budget_id,
investments_ids: investment_ids),
class: "button button-support small expanded",
- title: t('budgets.investments.investment.support_title'),
+ title: t("budgets.investments.investment.support_title"),
method: :post,
remote: true %>
<% end %>
diff --git a/app/views/budgets/investments/_categories.html.erb b/app/views/budgets/investments/_categories.html.erb
index b488536e5..5e23352e9 100644
--- a/app/views/budgets/investments/_categories.html.erb
+++ b/app/views/budgets/investments/_categories.html.erb
@@ -5,7 +5,7 @@
<% @categories.each do |category| %>
-
- <% css_class = { class: 'is-active' } if params[:search] == category.name %>
+ <% css_class = { class: "is-active" } if params[:search] == category.name %>
<%= link_to category.name, budget_investments_path(@budget, search: category.name), css_class || {} %>
<% end %>
diff --git a/app/views/budgets/investments/_flag_actions.html.erb b/app/views/budgets/investments/_flag_actions.html.erb
index 8627dfe94..94d47c571 100644
--- a/app/views/budgets/investments/_flag_actions.html.erb
+++ b/app/views/budgets/investments/_flag_actions.html.erb
@@ -4,7 +4,7 @@
- <%= link_to t('shared.flag'), flag_budget_investment_path(investment.budget, investment.id),
+ <%= link_to t("shared.flag"), flag_budget_investment_path(investment.budget, investment.id),
method: :put,
remote: true,
id: "flag-investment-#{ investment.id }" %>
@@ -16,7 +16,7 @@
- <%= link_to t('shared.unflag'), unflag_budget_investment_path(investment.budget, investment.id),
+ <%= link_to t("shared.unflag"), unflag_budget_investment_path(investment.budget, investment.id),
method: :put,
remote: true,
id: "unflag-investment-#{ investment.id }" %>
diff --git a/app/views/budgets/investments/_form.html.erb b/app/views/budgets/investments/_form.html.erb
index 9969261b8..62c94fe53 100644
--- a/app/views/budgets/investments/_form.html.erb
+++ b/app/views/budgets/investments/_form.html.erb
@@ -1,5 +1,5 @@
<%= form_for(@investment, url: form_url, method: :post, html: { multipart: true }) do |f| %>
- <%= render 'shared/errors', resource: @investment %>
+ <%= render "shared/errors", resource: @investment %>
@@ -19,20 +19,20 @@
<% if feature?(:allow_images) %>
- <%= render 'images/nested_image', imageable: @investment, f: f %>
+ <%= render "images/nested_image", imageable: @investment, f: f %>
<% end %>
<% if feature?(:allow_attached_documents) %>
- <%= render 'documents/nested_documents', documentable: @investment, f: f %>
+ <%= render "documents/nested_documents", documentable: @investment, f: f %>
<% end %>
<% if feature?(:map) %>
- <%= render 'map_locations/form_fields',
+ <%= render "map_locations/form_fields",
form: f,
map_location: @investment.map_location || MapLocation.new,
label: t("budgets.investments.form.map_location"),
@@ -69,7 +69,7 @@
label: false,
placeholder: t("budgets.investments.form.tags_placeholder"),
aria: {describedby: "tags-list-help-text"},
- class: 'js-tag-list tag-autocomplete',
+ class: "js-tag-list tag-autocomplete",
data: {js_url: suggest_tags_path} %>
@@ -77,7 +77,7 @@
<%= 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/budgets/investments/_header.html.erb b/app/views/budgets/investments/_header.html.erb
index e1da1ef5f..48f78411b 100644
--- a/app/views/budgets/investments/_header.html.erb
+++ b/app/views/budgets/investments/_header.html.erb
@@ -27,7 +27,7 @@
<%= t("budgets.investments.index.by_heading", heading: @heading.name) %>
- <%= render 'budgets/ballot/progress_bar' %>
+ <%= render "budgets/ballot/progress_bar" %>
<% else %>
diff --git a/app/views/budgets/investments/_investment.html.erb b/app/views/budgets/investments/_investment.html.erb
index 964c8ed56..9b63b935f 100644
--- a/app/views/budgets/investments/_investment.html.erb
+++ b/app/views/budgets/investments/_investment.html.erb
@@ -18,7 +18,7 @@
<% end %>
- <% cache [locale_and_user_status(investment), 'index', investment, investment.author] do %>
+ <% cache [locale_and_user_status(investment), "index", investment, investment.author] do %>
<%= link_to investment.title, namespaced_budget_investment_path(investment) %>
@@ -59,17 +59,17 @@
<% if investment.should_show_votes? %>
>
- <%= render partial: '/budgets/investments/votes', locals: {
+ <%= "data-equalizer-watch" if feature?(:allow_images) && investment.image.present? %>>
+ <%= render partial: "/budgets/investments/votes", locals: {
investment: investment,
investment_votes: investment_votes,
- vote_url: namespaced_budget_investment_vote_path(investment, value: 'yes')
+ vote_url: namespaced_budget_investment_vote_path(investment, value: "yes")
} %>
<% elsif investment.should_show_vote_count? %>
>
+ <%= "data-equalizer-watch" if feature?(:allow_images) && investment.image.present? %>>
<%= t("budgets.investments.investment.supports",
@@ -80,8 +80,8 @@
<% elsif investment.should_show_ballots? %>
>
- <%= render partial: '/budgets/investments/ballot', locals: {
+ <%= "data-equalizer-watch" if feature?(:allow_images) && investment.image.present? %>>
+ <%= render partial: "/budgets/investments/ballot", locals: {
investment: investment,
investment_ids: investment_ids,
ballot: ballot
@@ -90,7 +90,7 @@
<% elsif investment.should_show_price? %>
>
+ <%= "data-equalizer-watch" if feature?(:allow_images) && investment.image.present? %>>
<%= investment.formatted_price %>
@@ -98,7 +98,7 @@
<% else %>
-
>
+
>
<% end %>
<% end %>
diff --git a/app/views/budgets/investments/_investment_minimal.html.erb b/app/views/budgets/investments/_investment_minimal.html.erb
index acc999252..ca0b1f27f 100644
--- a/app/views/budgets/investments/_investment_minimal.html.erb
+++ b/app/views/budgets/investments/_investment_minimal.html.erb
@@ -3,7 +3,7 @@
- <% cache [locale_and_user_status(investment), 'index_minimal', investment, investment.author] do %>
+ <% cache [locale_and_user_status(investment), "index_minimal", investment, investment.author] do %>
<%= link_to investment.title, namespaced_budget_investment_path(investment) %>
<% end %>
diff --git a/app/views/budgets/investments/_investment_show.html.erb b/app/views/budgets/investments/_investment_show.html.erb
index 8565a80d7..ecc2645bc 100644
--- a/app/views/budgets/investments/_investment_show.html.erb
+++ b/app/views/budgets/investments/_investment_show.html.erb
@@ -20,7 +20,7 @@
<%= investment.title %>
- <%= render '/shared/author_info', resource: investment %>
+ <%= render "/shared/author_info", resource: investment %>
•
<%= l investment.created_at.to_date %>
@@ -28,7 +28,7 @@
<%= investment.heading.name %>
•
- <%= render 'budgets/investments/flag_actions', investment: @investment %>
+ <%= render "budgets/investments/flag_actions", investment: @investment %>
@@ -61,12 +61,12 @@
<% end %>
<% if feature?(:allow_attached_documents) %>
- <%= render 'documents/documents',
+ <%= render "documents/documents",
documents: investment.documents,
max_documents_allowed: Budget::Investment.max_documents_allowed %>
<% end %>
- <%= render 'shared/tags', taggable: investment %>
+ <%= render "shared/tags", taggable: investment %>
<% if investment.external_url.present? %>
@@ -75,7 +75,7 @@
<% end %>
<% if investment.should_show_unfeasibility_explanation? %>
-
<%= t('budgets.investments.show.unfeasibility_explanation') %>
+
<%= t("budgets.investments.show.unfeasibility_explanation") %>
<%= investment.unfeasibility_explanation %>
<% end %>
@@ -86,7 +86,7 @@
<%= investment.price_explanation %>
<% end %>
- <%= render 'relationable/related_content', relationable: @investment %>
+ <%= render "relationable/related_content", relationable: @investment %>
<%= render "budgets/investments/actions", investment: @investment %>
@@ -100,7 +100,7 @@