diff --git a/app/controllers/concerns/has_orders.rb b/app/controllers/concerns/has_orders.rb
index 90be317f0..40dcac20f 100644
--- a/app/controllers/concerns/has_orders.rb
+++ b/app/controllers/concerns/has_orders.rb
@@ -5,7 +5,7 @@ module HasOrders
def has_orders(valid_orders, *args)
before_action(*args) do |c|
@valid_orders = valid_orders.respond_to?(:call) ? valid_orders.call(c) : valid_orders.dup
- @valid_orders.delete('relevance') if params[:search].blank?
+ @valid_orders.delete("relevance") if params[:search].blank?
@current_order = @valid_orders.include?(params[:order]) ? params[:order] : @valid_orders.first
end
end
diff --git a/app/controllers/stats_controller.rb b/app/controllers/stats_controller.rb
index 4d059cae6..62ff427ef 100644
--- a/app/controllers/stats_controller.rb
+++ b/app/controllers/stats_controller.rb
@@ -24,6 +24,6 @@ class StatsController < ApplicationController
private
def daily_cache(key, &block)
- Rails.cache.fetch("public_stats/#{Time.current.strftime('%Y-%m-%d')}/#{key}", &block)
+ Rails.cache.fetch("public_stats/#{Time.current.strftime("%Y-%m-%d")}/#{key}", &block)
end
end
diff --git a/app/helpers/documentables_helper.rb b/app/helpers/documentables_helper.rb
index b277ae3eb..b17278019 100644
--- a/app/helpers/documentables_helper.rb
+++ b/app/helpers/documentables_helper.rb
@@ -18,7 +18,7 @@ module DocumentablesHelper
def accepted_content_types_extensions(documentable_class)
documentable_class.accepted_content_types
- .collect{ |content_type| ".#{content_type.split('/').last}" }
+ .collect{ |content_type| ".#{content_type.split("/").last}" }
.join(",")
end
diff --git a/app/helpers/followables_helper.rb b/app/helpers/followables_helper.rb
index 48dd761ce..5641a33bc 100644
--- a/app/helpers/followables_helper.rb
+++ b/app/helpers/followables_helper.rb
@@ -22,7 +22,7 @@ module FollowablesHelper
end
def followable_class_name(followable)
- followable.class.to_s.parameterize('_')
+ followable.class.to_s.parameterize("_")
end
def find_or_build_follow(user, followable)
diff --git a/app/helpers/imageables_helper.rb b/app/helpers/imageables_helper.rb
index 04c48d6c3..768578f75 100644
--- a/app/helpers/imageables_helper.rb
+++ b/app/helpers/imageables_helper.rb
@@ -22,7 +22,7 @@ module ImageablesHelper
def imageable_accepted_content_types_extensions
Image::ACCEPTED_CONTENT_TYPE
- .collect{ |content_type| ".#{content_type.split('/').last}" }
+ .collect{ |content_type| ".#{content_type.split("/").last}" }
.join(",")
end
diff --git a/app/helpers/map_locations_helper.rb b/app/helpers/map_locations_helper.rb
index d05f2c722..4d17efb2d 100644
--- a/app/helpers/map_locations_helper.rb
+++ b/app/helpers/map_locations_helper.rb
@@ -57,9 +57,9 @@ module MapLocationsHelper
map_tiles_provider_attribution: Rails.application.secrets.map_tiles_provider_attribution,
marker_editable: editable,
marker_remove_selector: "##{map_location_remove_marker_link_id(map_location)}",
- latitude_input_selector: "##{map_location_input_id(parent_class, 'latitude')}",
- longitude_input_selector: "##{map_location_input_id(parent_class, 'longitude')}",
- zoom_input_selector: "##{map_location_input_id(parent_class, 'zoom')}",
+ latitude_input_selector: "##{map_location_input_id(parent_class, "latitude")}",
+ longitude_input_selector: "##{map_location_input_id(parent_class, "longitude")}",
+ zoom_input_selector: "##{map_location_input_id(parent_class, "zoom")}",
marker_investments_coordinates: investments_coordinates
}
options[:marker_latitude] = map_location.latitude if map_location.latitude.present?
diff --git a/app/helpers/proposals_helper.rb b/app/helpers/proposals_helper.rb
index 84407f840..633f469a3 100644
--- a/app/helpers/proposals_helper.rb
+++ b/app/helpers/proposals_helper.rb
@@ -34,9 +34,9 @@ module ProposalsHelper
def empty_recommended_proposals_message_text(user)
if user.interests.any?
- t('proposals.index.recommendations.without_results')
+ t("proposals.index.recommendations.without_results")
else
- t('proposals.index.recommendations.without_interests')
+ t("proposals.index.recommendations.without_interests")
end
end
diff --git a/app/helpers/valuation_helper.rb b/app/helpers/valuation_helper.rb
index 56b1dd079..9f2f27528 100644
--- a/app/helpers/valuation_helper.rb
+++ b/app/helpers/valuation_helper.rb
@@ -18,7 +18,7 @@ module ValuationHelper
when 0
t("valuation.budget_investments.index.no_valuators_assigned")
when 1
- "".html_safe +
+ "".html_safe +
valuators.first.name +
"".html_safe
else
diff --git a/app/mailers/application_mailer.rb b/app/mailers/application_mailer.rb
index eded65fb8..f7928ff7e 100644
--- a/app/mailers/application_mailer.rb
+++ b/app/mailers/application_mailer.rb
@@ -1,5 +1,5 @@
class ApplicationMailer < ActionMailer::Base
helper :settings
- default from: "#{Setting['mailer_from_name']} <#{Setting['mailer_from_address']}>"
+ default from: "#{Setting["mailer_from_name"]} <#{Setting["mailer_from_address"]}>"
layout "mailer"
end
diff --git a/app/models/budget/investment.rb b/app/models/budget/investment.rb
index 0021755dc..f2095c746 100644
--- a/app/models/budget/investment.rb
+++ b/app/models/budget/investment.rb
@@ -218,7 +218,7 @@ class Budget
end
def code
- "#{created_at.strftime('%Y')}-#{id}" + (administrator.present? ? "-A#{administrator.id}" : "")
+ "#{created_at.strftime("%Y")}-#{id}" + (administrator.present? ? "-A#{administrator.id}" : "")
end
def send_unfeasible_email
diff --git a/app/models/legislation/proposal.rb b/app/models/legislation/proposal.rb
index cbf25bccf..0e1a39c90 100644
--- a/app/models/legislation/proposal.rb
+++ b/app/models/legislation/proposal.rb
@@ -120,7 +120,7 @@ class Legislation::Proposal < ActiveRecord::Base
end
def code
- "#{Setting['proposal_code_prefix']}-#{created_at.strftime('%Y-%m')}-#{id}"
+ "#{Setting["proposal_code_prefix"]}-#{created_at.strftime("%Y-%m")}-#{id}"
end
def after_commented
diff --git a/app/models/proposal.rb b/app/models/proposal.rb
index cfaf197d1..dfba48df1 100644
--- a/app/models/proposal.rb
+++ b/app/models/proposal.rb
@@ -163,7 +163,7 @@ class Proposal < ActiveRecord::Base
end
def code
- "#{Setting['proposal_code_prefix']}-#{created_at.strftime('%Y-%m')}-#{id}"
+ "#{Setting["proposal_code_prefix"]}-#{created_at.strftime("%Y-%m")}-#{id}"
end
def after_commented
diff --git a/app/models/spending_proposal.rb b/app/models/spending_proposal.rb
index 3bd753476..2b6b9fd67 100644
--- a/app/models/spending_proposal.rb
+++ b/app/models/spending_proposal.rb
@@ -109,7 +109,7 @@ class SpendingProposal < ActiveRecord::Base
end
def code
- "#{created_at.strftime('%Y')}-#{id}" + (administrator.present? ? "-A#{administrator.id}" : "")
+ "#{created_at.strftime("%Y")}-#{id}" + (administrator.present? ? "-A#{administrator.id}" : "")
end
def send_unfeasible_email
diff --git a/app/models/user.rb b/app/models/user.rb
index e02c93d99..e62b55273 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -238,7 +238,7 @@ class User < ActiveRecord::Base
Poll::Voter.where(user_id: other_user.id).update_all(user_id: id)
Budget::Ballot.where(user_id: other_user.id).update_all(user_id: id)
Vote.where("voter_id = ? AND voter_type = ?", other_user.id, "User").update_all(voter_id: id)
- data_log = "id: #{other_user.id} - #{Time.current.strftime('%Y-%m-%d %H:%M:%S')}"
+ data_log = "id: #{other_user.id} - #{Time.current.strftime("%Y-%m-%d %H:%M:%S")}"
update(former_users_data_log: "#{former_users_data_log} | #{data_log}")
end
diff --git a/app/views/admin/budget_investments/index.js.erb b/app/views/admin/budget_investments/index.js.erb
index dc3a8d67a..c1569cc59 100644
--- a/app/views/admin/budget_investments/index.js.erb
+++ b/app/views/admin/budget_investments/index.js.erb
@@ -1 +1 @@
-$("#investments").html('<%= j render("admin/budget_investments/investments") %>');
+$("#investments").html("<%= j render("admin/budget_investments/investments") %>");
diff --git a/app/views/admin/budget_investments/toggle_selection.js.erb b/app/views/admin/budget_investments/toggle_selection.js.erb
index 3074847d6..6ba72db2a 100644
--- a/app/views/admin/budget_investments/toggle_selection.js.erb
+++ b/app/views/admin/budget_investments/toggle_selection.js.erb
@@ -1 +1 @@
-$("#<%= dom_id(@investment) %>").html('<%= j render("select_investment", investment: @investment) %>');
+$("#<%= dom_id(@investment) %>").html("<%= j render("select_investment", investment: @investment) %>");
diff --git a/app/views/admin/budgets/_form.html.erb b/app/views/admin/budgets/_form.html.erb
index d5aaa02b2..e570da1bd 100644
--- a/app/views/admin/budgets/_form.html.erb
+++ b/app/views/admin/budgets/_form.html.erb
@@ -52,7 +52,7 @@
<% end %>
-
+ ">
|
<%= link_to t("admin.budgets.edit.edit_phase"),
diff --git a/app/views/admin/homepage/_setting.html.erb b/app/views/admin/homepage/_setting.html.erb
index 1398f6951..dc95a5f9c 100644
--- a/app/views/admin/homepage/_setting.html.erb
+++ b/app/views/admin/homepage/_setting.html.erb
@@ -4,8 +4,8 @@
<%= f.hidden_field :value,
value: (setting.enabled? ? "" : "active") %>
- <%= f.submit(t("admin.settings.index.features.#{setting.enabled? ? 'disable' : 'enable'}"),
- class: "button #{setting.enabled? ? 'hollow alert' : 'success'}",
+ <%= f.submit(t("admin.settings.index.features.#{setting.enabled? ? "disable" : "enable"}"),
+ class: "button #{setting.enabled? ? "hollow alert" : "success"}",
data: {confirm: t("admin.actions.confirm")}) %>
<% end %>
diff --git a/app/views/admin/legislation/draft_versions/index.html.erb b/app/views/admin/legislation/draft_versions/index.html.erb
index 5ebafd837..0abbf128d 100644
--- a/app/views/admin/legislation/draft_versions/index.html.erb
+++ b/app/views/admin/legislation/draft_versions/index.html.erb
@@ -38,7 +38,7 @@
|
<% if draft_version.status == "draft" %>
<%= t("admin.legislation.draft_versions.statuses.draft") %>
- <%= link_to "(#{t('.preview')})", legislation_process_draft_version_path(@process, draft_version) %>
+ <%= link_to "(#{t(".preview")})", legislation_process_draft_version_path(@process, draft_version) %>
<% else %>
<%= t("admin.legislation.draft_versions.statuses.published") %>
<% end %>
diff --git a/app/views/admin/legislation/proposals/_form.html.erb b/app/views/admin/legislation/proposals/_form.html.erb
index 94e94d157..63617c57d 100644
--- a/app/views/admin/legislation/proposals/_form.html.erb
+++ b/app/views/admin/legislation/proposals/_form.html.erb
@@ -21,7 +21,7 @@
<%= f.text_field :custom_list, value: @process.tag_list_on(:customs).to_s,
label: false,
placeholder: t("admin.legislation.proposals.form.custom_categories_placeholder"),
- class: 'js-tag-list',
+ class: "js-tag-list",
aria: {describedby: "tag-list-help-text"} %>
diff --git a/app/views/admin/legislation/proposals/_proposals.html.erb b/app/views/admin/legislation/proposals/_proposals.html.erb
index 9250e2a42..8682eeab6 100644
--- a/app/views/admin/legislation/proposals/_proposals.html.erb
+++ b/app/views/admin/legislation/proposals/_proposals.html.erb
@@ -1,7 +1,7 @@
<% if proposals.any? %>
<%= page_entries_info proposals %>
- <%= render 'shared/wide_order_selector', i18n_namespace: "admin.legislation.processes.proposals" %>
+ <%= render "shared/wide_order_selector", i18n_namespace: "admin.legislation.processes.proposals" %>
diff --git a/app/views/admin/legislation/proposals/index.html.erb b/app/views/admin/legislation/proposals/index.html.erb
index d8dd407a5..d758254fa 100644
--- a/app/views/admin/legislation/proposals/index.html.erb
+++ b/app/views/admin/legislation/proposals/index.html.erb
@@ -8,8 +8,8 @@
<%= @process.title %>
- <%= render 'admin/legislation/processes/subnav', process: @process, active: 'proposals' %>
+ <%= render "admin/legislation/processes/subnav", process: @process, active: "proposals" %>
- <%= render 'form' %>
- <%= render 'proposals', proposals: @proposals %>
+ <%= render "form" %>
+ <%= render "proposals", proposals: @proposals %>
diff --git a/app/views/admin/legislation/proposals/toggle_selection.js.erb b/app/views/admin/legislation/proposals/toggle_selection.js.erb
index 093afa904..d38292e9d 100644
--- a/app/views/admin/legislation/proposals/toggle_selection.js.erb
+++ b/app/views/admin/legislation/proposals/toggle_selection.js.erb
@@ -1 +1 @@
-$("#<%= dom_id(@proposal) %> .select").html('<%= j render("select_proposal", proposal: @proposal) %>');
+$("#<%= dom_id(@proposal) %> .select").html("<%= j render("select_proposal", proposal: @proposal) %>");
diff --git a/app/views/admin/poll/booth_assignments/create.js.erb b/app/views/admin/poll/booth_assignments/create.js.erb
index 8b278f7b3..7e50ea1bd 100644
--- a/app/views/admin/poll/booth_assignments/create.js.erb
+++ b/app/views/admin/poll/booth_assignments/create.js.erb
@@ -1 +1 @@
-$("#<%= dom_id(@booth) %>").html('<%= j render("booth_assignment", booth: @booth, booth_assignment: @booth.assignment_on_poll(@poll)) %>');
+$("#<%= dom_id(@booth) %>").html("<%= j render("booth_assignment", booth: @booth, booth_assignment: @booth.assignment_on_poll(@poll)) %>");
diff --git a/app/views/admin/poll/booth_assignments/destroy.js.erb b/app/views/admin/poll/booth_assignments/destroy.js.erb
index 8b278f7b3..7e50ea1bd 100644
--- a/app/views/admin/poll/booth_assignments/destroy.js.erb
+++ b/app/views/admin/poll/booth_assignments/destroy.js.erb
@@ -1 +1 @@
-$("#<%= dom_id(@booth) %>").html('<%= j render("booth_assignment", booth: @booth, booth_assignment: @booth.assignment_on_poll(@poll)) %>');
+$("#<%= dom_id(@booth) %>").html("<%= j render("booth_assignment", booth: @booth, booth_assignment: @booth.assignment_on_poll(@poll)) %>");
diff --git a/app/views/admin/poll/booth_assignments/search_booths.js.erb b/app/views/admin/poll/booth_assignments/search_booths.js.erb
index 72fd96f68..c773ce518 100644
--- a/app/views/admin/poll/booth_assignments/search_booths.js.erb
+++ b/app/views/admin/poll/booth_assignments/search_booths.js.erb
@@ -1 +1 @@
-$("#search-booths-results").html("<%= j render 'search_booths_results' %>");
\ No newline at end of file
+$("#search-booths-results").html("<%= j render "search_booths_results" %>");
\ No newline at end of file
diff --git a/app/views/admin/poll/booth_assignments/show.html.erb b/app/views/admin/poll/booth_assignments/show.html.erb
index 5eb28ec7f..a19fb81a5 100644
--- a/app/views/admin/poll/booth_assignments/show.html.erb
+++ b/app/views/admin/poll/booth_assignments/show.html.erb
@@ -83,7 +83,7 @@
<% (@poll.starts_at.to_date..@poll.ends_at.to_date).each do |voting_date| %>
<% system_count = @voters_by_date[voting_date].present? ? @voters_by_date[voting_date].size : 0 %>
-
+ ">
| <%= l voting_date %> |
<%= system_count %> |
diff --git a/app/views/admin/poll/officer_assignments/search_officers.js.erb b/app/views/admin/poll/officer_assignments/search_officers.js.erb
index ba621d8f7..9a97db091 100644
--- a/app/views/admin/poll/officer_assignments/search_officers.js.erb
+++ b/app/views/admin/poll/officer_assignments/search_officers.js.erb
@@ -1 +1 @@
-$("#search-officers-results").html("<%= j render 'search_officers_results' %>");
\ No newline at end of file
+$("#search-officers-results").html("<%= j render "search_officers_results" %>");
\ No newline at end of file
diff --git a/app/views/admin/poll/officers/search.js.erb b/app/views/admin/poll/officers/search.js.erb
index bd259f7fb..3ade51dfa 100644
--- a/app/views/admin/poll/officers/search.js.erb
+++ b/app/views/admin/poll/officers/search.js.erb
@@ -1 +1 @@
-$("#search-result").html("<%= j render 'officer', officer: @officer %>");
+$("#search-result").html("<%= j render "officer", officer: @officer %>");
diff --git a/app/views/admin/poll/officers/user_not_found.js.erb b/app/views/admin/poll/officers/user_not_found.js.erb
index a6444dc61..4ba37aa47 100644
--- a/app/views/admin/poll/officers/user_not_found.js.erb
+++ b/app/views/admin/poll/officers/user_not_found.js.erb
@@ -1 +1 @@
-$("#search-result").html("<%= j t('admin.poll_officers.search.user_not_found') %> ");
+$("#search-result").html("<%= j t("admin.poll_officers.search.user_not_found") %> ");
diff --git a/app/views/admin/poll/polls/_form.html.erb b/app/views/admin/poll/polls/_form.html.erb
index f0fc03a5b..98c1d8d2f 100644
--- a/app/views/admin/poll/polls/_form.html.erb
+++ b/app/views/admin/poll/polls/_form.html.erb
@@ -42,7 +42,7 @@
-
+ ">
<%= f.collection_check_boxes(:geozone_ids, @geozones, :id, :name) do |b| %>
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") %>
-
+ | ">
<% if total_recounts.present? %>
<%= total_recounts %>
<% else %>
diff --git a/app/views/admin/poll/shifts/search_officers.js.erb b/app/views/admin/poll/shifts/search_officers.js.erb
index ba621d8f7..9a97db091 100644
--- a/app/views/admin/poll/shifts/search_officers.js.erb
+++ b/app/views/admin/poll/shifts/search_officers.js.erb
@@ -1 +1 @@
-$("#search-officers-results").html("<%= j render 'search_officers_results' %>");
\ No newline at end of file
+$("#search-officers-results").html("<%= j render "search_officers_results" %>");
\ No newline at end of file
diff --git a/app/views/admin/settings/_featured_settings_table.html.erb b/app/views/admin/settings/_featured_settings_table.html.erb
index c8b32c7de..5de1dc9b1 100644
--- a/app/views/admin/settings/_featured_settings_table.html.erb
+++ b/app/views/admin/settings/_featured_settings_table.html.erb
@@ -35,8 +35,8 @@
<%= form_for(feature, url: admin_setting_path(feature), html: { id: "edit_#{dom_id(feature)}"}) do |f| %>
<%= f.hidden_field :value, id: dom_id(feature), value: (feature.enabled? ? "" : "active") %>
- <%= f.submit(t("admin.settings.index.features.#{feature.enabled? ? 'disable' : 'enable'}"),
- class: "button expanded #{feature.enabled? ? 'hollow alert' : 'success'}",
+ <%= f.submit(t("admin.settings.index.features.#{feature.enabled? ? "disable" : "enable"}"),
+ class: "button expanded #{feature.enabled? ? "hollow alert" : "success"}",
data: {confirm: t("admin.actions.confirm")}) %>
<% end %>
|
diff --git a/app/views/admin/spending_proposals/_summary_table.html.erb b/app/views/admin/spending_proposals/_summary_table.html.erb
index c0c127ee7..066febe07 100644
--- a/app/views/admin/spending_proposals/_summary_table.html.erb
+++ b/app/views/admin/spending_proposals/_summary_table.html.erb
@@ -8,7 +8,7 @@
<%= t("admin.spending_proposals.summary.cost_for_geozone") %> |
<% spending_proposals.each do |geozone, price| %>
-
+ ">
|
<%= 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/admin/widget/cards/_form.html.erb b/app/views/admin/widget/cards/_form.html.erb
index 3d4e99f6d..413be15d1 100644
--- a/app/views/admin/widget/cards/_form.html.erb
+++ b/app/views/admin/widget/cards/_form.html.erb
@@ -37,5 +37,5 @@
- <%= f.submit(t("admin.homepage.#{action_name}.#{@card.header? ? 'submit_header' : 'submit_card'}"), class: "button success") %>
+ <%= f.submit(t("admin.homepage.#{action_name}.#{@card.header? ? "submit_header" : "submit_card"}"), class: "button success") %>
<% end %>
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") %>">
| | |