diff --git a/app/views/admin/poll/recounts/index.html.erb b/app/views/admin/poll/recounts/index.html.erb
index 5b73f9c34..692078340 100644
--- a/app/views/admin/poll/recounts/index.html.erb
+++ b/app/views/admin/poll/recounts/index.html.erb
@@ -43,7 +43,7 @@
<%= link_to booth_assignment.booth.name, admin_poll_booth_assignment_path(@poll, booth_assignment, anchor: "tab-recounts") %>
-
">
|
<%= geozone.present? ? geozone.name : t("geozones.none") %>
|
diff --git a/app/views/admin/spending_proposals/index.html.erb b/app/views/admin/spending_proposals/index.html.erb
index 281e0131c..8f2711c29 100644
--- a/app/views/admin/spending_proposals/index.html.erb
+++ b/app/views/admin/spending_proposals/index.html.erb
@@ -59,7 +59,7 @@
<% if spending_proposal.administrator.present? %>
- <%= spending_proposal.administrator.name %>
+ "><%= spending_proposal.administrator.name %>
<% else %>
<%= t("admin.spending_proposals.index.no_admin_assigned") %>
<% end %>
diff --git a/app/views/admin/users/index.js.erb b/app/views/admin/users/index.js.erb
index 021407a23..c984d0f5a 100644
--- a/app/views/admin/users/index.js.erb
+++ b/app/views/admin/users/index.js.erb
@@ -1 +1 @@
-$("#users").html("<%= j render 'users' %>");
+$("#users").html("<%= j render "users" %>");
diff --git a/app/views/budgets/_phases.html.erb b/app/views/budgets/_phases.html.erb
index a5461b6be..61dd1904c 100644
--- a/app/views/budgets/_phases.html.erb
+++ b/app/views/budgets/_phases.html.erb
@@ -1,6 +1,6 @@
<% current_budget.published_phases.each do |phase| %>
- -
+
- ">
<%= t("budgets.phase.#{phase.kind}") %>
<%= l(phase.starts_at.to_date, format: :long) if phase.starts_at.present? %>
diff --git a/app/views/budgets/ballot/lines/_refresh_ballots.js.erb b/app/views/budgets/ballot/lines/_refresh_ballots.js.erb
index f81560d96..fac0f7172 100644
--- a/app/views/budgets/ballot/lines/_refresh_ballots.js.erb
+++ b/app/views/budgets/ballot/lines/_refresh_ballots.js.erb
@@ -1,8 +1,8 @@
<% if @investments.present? %>
<% @investments.each do |investment| %>
- $("#<%= dom_id(investment) %>_ballot").html('<%= j render("/budgets/investments/ballot",
+ $("#<%= dom_id(investment) %>_ballot").html("<%= j render("/budgets/investments/ballot",
investment: investment,
investment_ids: investment_ids,
- ballot: ballot) %>');
+ ballot: ballot) %>");
<% end %>
<% end %>
diff --git a/app/views/budgets/ballot/lines/create.js.erb b/app/views/budgets/ballot/lines/create.js.erb
index 1528062f7..24e9a5aef 100644
--- a/app/views/budgets/ballot/lines/create.js.erb
+++ b/app/views/budgets/ballot/lines/create.js.erb
@@ -1,9 +1,9 @@
-$("#progress_bar").html('<%= j render("/budgets/ballot/progress_bar", ballot: @ballot) %>');
-$("#sidebar").html('<%= j render("/budgets/investments/sidebar") %>');
-$("#<%= dom_id(@investment) %>_ballot").html('<%= j render("/budgets/investments/ballot",
+$("#progress_bar").html("<%= j render("/budgets/ballot/progress_bar", ballot: @ballot) %>");
+$("#sidebar").html("<%= j render("/budgets/investments/sidebar") %>");
+$("#<%= dom_id(@investment) %>_ballot").html("<%= j render("/budgets/investments/ballot",
investment: @investment,
investment_ids: @investment_ids,
- ballot: @ballot) %>');
+ ballot: @ballot) %>");
<%= render "refresh_ballots",
investment: @investment,
diff --git a/app/views/budgets/ballot/lines/destroy.js.erb b/app/views/budgets/ballot/lines/destroy.js.erb
index e2a91ed6f..0503609e1 100644
--- a/app/views/budgets/ballot/lines/destroy.js.erb
+++ b/app/views/budgets/ballot/lines/destroy.js.erb
@@ -1,11 +1,11 @@
-$("#progress_bar").html('<%= j render("budgets/ballot/progress_bar", ballot: @ballot) %>');
-$("#sidebar").html('<%= j render("budgets/investments/sidebar") %>');
-$("#ballot").html('<%= j render("budgets/ballot/ballot") %>')
+$("#progress_bar").html("<%= j render("budgets/ballot/progress_bar", ballot: @ballot) %>");
+$("#sidebar").html("<%= j render("budgets/investments/sidebar") %>");
+$("#ballot").html("<%= j render("budgets/ballot/ballot") %>")
-$("#<%= dom_id(@investment) %>_ballot").html('<%= j render("/budgets/investments/ballot",
+$("#<%= dom_id(@investment) %>_ballot").html("<%= j render("/budgets/investments/ballot",
investment: @investment,
investment_ids: @investment_ids,
- ballot: @ballot) %>');
+ ballot: @ballot) %>");
<%= render "refresh_ballots",
investment: @investment,
investment_ids: @investment_ids,
diff --git a/app/views/budgets/ballot/lines/new.js.erb b/app/views/budgets/ballot/lines/new.js.erb
index 2e8254866..6c8cecac4 100644
--- a/app/views/budgets/ballot/lines/new.js.erb
+++ b/app/views/budgets/ballot/lines/new.js.erb
@@ -1,2 +1,2 @@
-$("#<%= dom_id(@spending_proposal) %>_ballot").html('<%= j render("spending_proposals/ballot", spending_proposal: @spending_proposal) %>');
+$("#<%= dom_id(@spending_proposal) %>_ballot").html("<%= j render("spending_proposals/ballot", spending_proposal: @spending_proposal) %>");
$(".no-supports-allowed").show();
\ No newline at end of file
diff --git a/app/views/budgets/investments/_flag_actions.html.erb b/app/views/budgets/investments/_flag_actions.html.erb
index 94d47c571..400156828 100644
--- a/app/views/budgets/investments/_flag_actions.html.erb
+++ b/app/views/budgets/investments/_flag_actions.html.erb
@@ -1,6 +1,6 @@
<% if show_flag_action? investment %>
-
+ ">
@@ -12,7 +12,7 @@
<% end %>
<% if show_unflag_action? investment %>
-
+ ">
diff --git a/app/views/budgets/investments/_investment.html.erb b/app/views/budgets/investments/_investment.html.erb
index 9b63b935f..96785717e 100644
--- a/app/views/budgets/investments/_investment.html.erb
+++ b/app/views/budgets/investments/_investment.html.erb
@@ -1,5 +1,5 @@
-
+ ">
<% if feature?(:allow_images) && investment.image.present? %>
diff --git a/app/views/budgets/investments/_votes.html.erb b/app/views/budgets/investments/_votes.html.erb
index fadebbadd..8d17f696e 100644
--- a/app/views/budgets/investments/_votes.html.erb
+++ b/app/views/budgets/investments/_votes.html.erb
@@ -4,7 +4,7 @@
-
+ ">
<%= t("budgets.investments.investment.supports", count: investment.total_votes) %>
diff --git a/app/views/budgets/investments/vote.js.erb b/app/views/budgets/investments/vote.js.erb
index 1a770d9c1..74ce74ccf 100644
--- a/app/views/budgets/investments/vote.js.erb
+++ b/app/views/budgets/investments/vote.js.erb
@@ -1,4 +1,4 @@
-$("#<%= dom_id(@investment) %>_votes").html('<%= j render("/budgets/investments/votes",
+$("#<%= dom_id(@investment) %>_votes").html("<%= j render("/budgets/investments/votes",
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")) %>");
diff --git a/app/views/budgets/results/_results_table.html.erb b/app/views/budgets/results/_results_table.html.erb
index bda81e268..7420aed7e 100644
--- a/app/views/budgets/results/_results_table.html.erb
+++ b/app/views/budgets/results/_results_table.html.erb
@@ -1,5 +1,5 @@
-"
+ style="<%= results_type != :compatible ? "display: none" : "" %>"
id="<%= results_type %>-container">
<%= title %>
@@ -29,8 +29,8 @@
<% amount_available = heading_price %>
<% investments.each do |investment| %>
+ class="budget-investments <%= investment.winner? ? "success" : "js-discarded" %>"
+ style="<%= investment.winner? ? "" : "display: none" %>">
|
<% if investment.winner? %>
diff --git a/app/views/comments/_flag_actions.html.erb b/app/views/comments/_flag_actions.html.erb
index 1925ced08..cac924994 100644
--- a/app/views/comments/_flag_actions.html.erb
+++ b/app/views/comments/_flag_actions.html.erb
@@ -3,7 +3,7 @@
|
+ title="<%= t("shared.flag") %>">
+ title="<%= t("shared.unflag") %>">
| |