From 5bfc9add784b3a2e37c1d867d66315b5b400f638 Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Thu, 14 Mar 2019 17:08:47 +0100 Subject: [PATCH 01/14] Use double quotes in app/views/admin/budget --- app/views/admin/budget_groups/_form.html.erb | 2 +- app/views/admin/budget_headings/_form.html.erb | 2 +- .../admin/budget_investments/_investments.html.erb | 4 ++-- .../budget_investments/_written_by_author.html.erb | 6 +++--- app/views/admin/budget_investments/edit.html.erb | 12 ++++++------ app/views/admin/budget_investments/show.html.erb | 14 +++++++------- app/views/admin/budget_phases/_form.html.erb | 2 +- app/views/admin/budget_phases/edit.html.erb | 2 +- app/views/admin/budgets/_form.html.erb | 2 +- app/views/admin/budgets/edit.html.erb | 2 +- app/views/admin/budgets/index.html.erb | 2 +- app/views/admin/budgets/new.html.erb | 2 +- 12 files changed, 26 insertions(+), 26 deletions(-) diff --git a/app/views/admin/budget_groups/_form.html.erb b/app/views/admin/budget_groups/_form.html.erb index cbf53ae30..06a185ae9 100644 --- a/app/views/admin/budget_groups/_form.html.erb +++ b/app/views/admin/budget_groups/_form.html.erb @@ -3,7 +3,7 @@
<%= translatable_form_for [:admin, @budget, @group], url: path do |f| %> - <%= render 'shared/errors', resource: @group %> + <%= render "shared/errors", resource: @group %> <%= f.translatable_fields do |translations_form| %> <%= translations_form.text_field :name, diff --git a/app/views/admin/budget_headings/_form.html.erb b/app/views/admin/budget_headings/_form.html.erb index 8745bf506..4fe3b75da 100644 --- a/app/views/admin/budget_headings/_form.html.erb +++ b/app/views/admin/budget_headings/_form.html.erb @@ -4,7 +4,7 @@ <%= translatable_form_for [:admin, @budget, @group, @heading], url: path do |f| %> - <%= render 'shared/errors', resource: @heading %> + <%= render "shared/errors", resource: @heading %> <%= f.translatable_fields do |translations_form| %> <%= translations_form.text_field :name, diff --git a/app/views/admin/budget_investments/_investments.html.erb b/app/views/admin/budget_investments/_investments.html.erb index 1bae41ee1..0be6f5e10 100644 --- a/app/views/admin/budget_investments/_investments.html.erb +++ b/app/views/admin/budget_investments/_investments.html.erb @@ -2,7 +2,7 @@ admin_budget_budget_investments_path(csv_params), class: "float-right small clear" %> -<% if params[:filter] == 'winners' %> +<% if params[:filter] == "winners" %> <% if display_calculate_winners_button?(@budget) %> <%= link_to calculate_winner_button_text(@budget), calculate_winners_admin_budget_path(@budget), @@ -48,7 +48,7 @@ <% @investments.each do |investment| %> - <%= render '/admin/budget_investments/select_investment', investment: investment %> + <%= render "/admin/budget_investments/select_investment", investment: investment %> <% end %> diff --git a/app/views/admin/budget_investments/_written_by_author.html.erb b/app/views/admin/budget_investments/_written_by_author.html.erb index 2ce89e667..ec2582fdc 100644 --- a/app/views/admin/budget_investments/_written_by_author.html.erb +++ b/app/views/admin/budget_investments/_written_by_author.html.erb @@ -67,7 +67,7 @@ <% if @investment.image.present? %> <%= link_to t("admin.budget_investments.show.see_image"), - namespaced_budget_investment_path(@investment, {anchor: 'image'}), + namespaced_budget_investment_path(@investment, {anchor: "image"}), target: "blank" %> <% else %> <%= t("admin.budget_investments.show.no_image") %> @@ -80,7 +80,7 @@ <% if @investment.documents.present? %> <%= link_to t("admin.budget_investments.show.see_documents", count: @investment.documents.count), - namespaced_budget_investment_path(@investment, {anchor: 'documents'}), + namespaced_budget_investment_path(@investment, {anchor: "documents"}), target: "blank" %> <% else %> <%= t("admin.budget_investments.show.no_documents") %> @@ -89,5 +89,5 @@

<%= t("admin.budget_investments.show.user_tags") %>: - <%= @investment.tag_list.sort.join(', ') %> + <%= @investment.tag_list.sort.join(", ") %>

diff --git a/app/views/admin/budget_investments/edit.html.erb b/app/views/admin/budget_investments/edit.html.erb index 5c98f633b..6cfcfbe63 100644 --- a/app/views/admin/budget_investments/edit.html.erb +++ b/app/views/admin/budget_investments/edit.html.erb @@ -1,4 +1,4 @@ -<%= link_to admin_budget_budget_investment_path(@budget, @investment, Budget::Investment.filter_params(params)), class: 'back' do %> +<%= link_to admin_budget_budget_investment_path(@budget, @investment, Budget::Investment.filter_params(params)), class: "back" do %> <%= t("shared.back") %> <% end %> @@ -21,7 +21,7 @@
<%= f.label :tag_list, t("admin.budget_investments.edit.user_tags") %> <%= f.text_field :tag_list, - value: @investment.tag_list.sort.join(','), + value: @investment.tag_list.sort.join(","), label: false %>
@@ -57,10 +57,10 @@ <% end %>
<%= f.text_field :valuation_tag_list, - value: @investment.valuation_tag_list.sort.join(','), + value: @investment.valuation_tag_list.sort.join(","), label: false, placeholder: t("admin.budget_investments.edit.tags_placeholder"), - class: 'js-tag-list' %> + class: "js-tag-list" %>
@@ -88,7 +88,7 @@

<%= t("admin.budget_investments.edit.compatibility") %>

<%= f.label :incompatible do %> - <%= f.check_box :incompatible, title: t('admin.budget_investments.edit.compatibility'), label: false %> + <%= f.check_box :incompatible, title: t("admin.budget_investments.edit.compatibility"), label: false %> <%= t("admin.budget_investments.edit.mark_as_incompatible") %> <% end %>
@@ -96,7 +96,7 @@

<%= t("admin.budget_investments.edit.selection") %>

<%= f.label :selected do %> - <%= f.check_box :selected, title: t('admin.budget_investments.edit.selection'), label: false %> + <%= f.check_box :selected, title: t("admin.budget_investments.edit.selection"), label: false %> <%= t("admin.budget_investments.edit.mark_as_selected") %> <% end %>
diff --git a/app/views/admin/budget_investments/show.html.erb b/app/views/admin/budget_investments/show.html.erb index 9ccf0d6a0..191b498ef 100644 --- a/app/views/admin/budget_investments/show.html.erb +++ b/app/views/admin/budget_investments/show.html.erb @@ -3,7 +3,7 @@ <%= t("shared.back") %> <% end %> -<%= render 'written_by_author' %> +<%= render "written_by_author" %> <%= link_to t("admin.budget_investments.show.edit"), edit_admin_budget_budget_investment_path(@budget, @investment, @@ -20,13 +20,13 @@

<%= t("admin.budget_investments.show.tags") %>: - <%= @investment.tags_on(:valuation).pluck(:name).sort.join(', ') %> + <%= @investment.tags_on(:valuation).pluck(:name).sort.join(", ") %>

<%= t("admin.budget_investments.show.valuator_groups") %>: <% if @investment.valuator_groups.any? %> - <%= @investment.valuator_groups.collect(&:name).join(', ') %> + <%= @investment.valuator_groups.collect(&:name).join(", ") %> <% else %> <%= t("admin.budget_investments.show.undefined") %> <% end %> @@ -35,7 +35,7 @@

<%= t("admin.budget_investments.show.assigned_valuators") %>: <% if @investment.valuators.any? %> - <%= @investment.valuators.collect(&:name_and_email).join(', ') %> + <%= @investment.valuators.collect(&:name_and_email).join(", ") %> <% else %> <%= t("admin.budget_investments.show.undefined") %> <% end %> @@ -44,17 +44,17 @@

<%= link_to t("admin.budget_investments.show.edit_classification"), edit_admin_budget_budget_investment_path(@budget, @investment, - {anchor: 'classification'}.merge(Budget::Investment.filter_params(params))) unless @budget.finished? %> + {anchor: "classification"}.merge(Budget::Investment.filter_params(params))) unless @budget.finished? %>


<%= t("admin.budget_investments.show.dossier") %>

-<%= render 'valuation/budget_investments/dossier' %> +<%= render "valuation/budget_investments/dossier" %>

<%= link_to t("admin.budget_investments.show.edit_dossier"), edit_valuation_budget_budget_investment_path(@budget, @investment) unless @budget.finished? %>

-<%= render 'valuation/budget_investments/valuation_comments' %> +<%= render "valuation/budget_investments/valuation_comments" %> <%= render "admin/milestones/milestones", milestoneable: @investment %> diff --git a/app/views/admin/budget_phases/_form.html.erb b/app/views/admin/budget_phases/_form.html.erb index 5bcd5ed3b..05b4139be 100644 --- a/app/views/admin/budget_phases/_form.html.erb +++ b/app/views/admin/budget_phases/_form.html.erb @@ -2,7 +2,7 @@ <%= translatable_form_for [:admin, @phase.budget, @phase] do |f| %> - <%= render 'shared/errors', resource: @phase %> + <%= render "shared/errors", resource: @phase %>
<%= f.label :starts_at, t("admin.budget_phases.edit.start_date") %> diff --git a/app/views/admin/budget_phases/edit.html.erb b/app/views/admin/budget_phases/edit.html.erb index 634f10c9f..7161abc88 100644 --- a/app/views/admin/budget_phases/edit.html.erb +++ b/app/views/admin/budget_phases/edit.html.erb @@ -4,4 +4,4 @@

<%= t("admin.budgets.edit.title") %> - <%= t("budgets.phase.#{@phase.kind}") %>

-<%= render '/admin/budget_phases/form' %> +<%= render "/admin/budget_phases/form" %> diff --git a/app/views/admin/budgets/_form.html.erb b/app/views/admin/budgets/_form.html.erb index aeaf0db37..d5aaa02b2 100644 --- a/app/views/admin/budgets/_form.html.erb +++ b/app/views/admin/budgets/_form.html.erb @@ -2,7 +2,7 @@ <%= translatable_form_for [:admin, @budget] do |f| %> - <%= render 'shared/errors', resource: @budget %> + <%= render "shared/errors", resource: @budget %>
<%= f.translatable_fields do |translations_form| %> diff --git a/app/views/admin/budgets/edit.html.erb b/app/views/admin/budgets/edit.html.erb index a4a9c2729..508279796 100644 --- a/app/views/admin/budgets/edit.html.erb +++ b/app/views/admin/budgets/edit.html.erb @@ -4,4 +4,4 @@

<%= t("admin.budgets.edit.title") %>

-<%= render '/admin/budgets/form' %> +<%= render "/admin/budgets/form" %> diff --git a/app/views/admin/budgets/index.html.erb b/app/views/admin/budgets/index.html.erb index 02660c263..2be3ae926 100644 --- a/app/views/admin/budgets/index.html.erb +++ b/app/views/admin/budgets/index.html.erb @@ -4,7 +4,7 @@ new_admin_budget_path, class: "button float-right" %> -<%= render 'shared/filter_subnav', i18n_namespace: "admin.budgets.index" %> +<%= render "shared/filter_subnav", i18n_namespace: "admin.budgets.index" %> <% if @budgets.any? %>

<%= page_entries_info @budgets %>

diff --git a/app/views/admin/budgets/new.html.erb b/app/views/admin/budgets/new.html.erb index efe1a47e2..aca444559 100644 --- a/app/views/admin/budgets/new.html.erb +++ b/app/views/admin/budgets/new.html.erb @@ -2,4 +2,4 @@

<%= t("admin.budgets.new.title") %>

-<%= render '/admin/budgets/form' %> +<%= render "/admin/budgets/form" %> From 7b4b4b716c219186f9d45c8ca931f88cc6fc506b Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Thu, 14 Mar 2019 17:09:31 +0100 Subject: [PATCH 02/14] Use double quotes in app/views/admin/legislation --- app/views/admin/legislation/draft_versions/_form.html.erb | 2 +- app/views/admin/legislation/draft_versions/edit.html.erb | 6 +++--- app/views/admin/legislation/draft_versions/index.html.erb | 4 ++-- app/views/admin/legislation/draft_versions/new.html.erb | 4 ++-- app/views/admin/legislation/homepages/_form.html.erb | 2 +- app/views/admin/legislation/homepages/edit.html.erb | 4 ++-- app/views/admin/legislation/processes/_form.html.erb | 4 ++-- app/views/admin/legislation/processes/edit.html.erb | 4 ++-- app/views/admin/legislation/processes/index.html.erb | 4 ++-- app/views/admin/legislation/questions/_form.html.erb | 2 +- app/views/admin/legislation/questions/edit.html.erb | 6 +++--- app/views/admin/legislation/questions/index.html.erb | 4 ++-- app/views/admin/legislation/questions/new.html.erb | 4 ++-- 13 files changed, 25 insertions(+), 25 deletions(-) diff --git a/app/views/admin/legislation/draft_versions/_form.html.erb b/app/views/admin/legislation/draft_versions/_form.html.erb index 89ab41823..754b420ca 100644 --- a/app/views/admin/legislation/draft_versions/_form.html.erb +++ b/app/views/admin/legislation/draft_versions/_form.html.erb @@ -44,7 +44,7 @@ <%= f.submit(class: "button", value: t("admin.legislation.draft_versions.#{admin_submit_action(@draft_version)}.submit_button")) %> - <%= link_to "#", class: 'fullscreen-toggle' do %> + <%= link_to "#", class: "fullscreen-toggle" do %> " data-open-text="<%= t("admin.legislation.draft_versions.form.close_text_editor")%>"> <%= t("admin.legislation.draft_versions.form.launch_text_editor")%> diff --git a/app/views/admin/legislation/draft_versions/edit.html.erb b/app/views/admin/legislation/draft_versions/edit.html.erb index b81723d2b..f9b9593a5 100644 --- a/app/views/admin/legislation/draft_versions/edit.html.erb +++ b/app/views/admin/legislation/draft_versions/edit.html.erb @@ -9,7 +9,7 @@

<%= @process.title %>

- <%= render 'admin/legislation/processes/subnav', process: @process, active: 'draft_versions' %> + <%= render "admin/legislation/processes/subnav", process: @process, active: "draft_versions" %>
- <%= render 'form', url: admin_legislation_process_draft_version_path(@process, @draft_version) %> + <%= render "form", url: admin_legislation_process_draft_version_path(@process, @draft_version) %> diff --git a/app/views/admin/legislation/draft_versions/index.html.erb b/app/views/admin/legislation/draft_versions/index.html.erb index f3701d880..5ebafd837 100644 --- a/app/views/admin/legislation/draft_versions/index.html.erb +++ b/app/views/admin/legislation/draft_versions/index.html.erb @@ -8,7 +8,7 @@

<%= @process.title %>

- <%= render 'admin/legislation/processes/subnav', process: @process, active: 'draft_versions' %> + <%= render "admin/legislation/processes/subnav", process: @process, active: "draft_versions" %>

<%= t("admin.legislation.draft_versions.index.title") %>

@@ -36,7 +36,7 @@ <%= draft_version.created_at.to_date %> - <% if draft_version.status == 'draft' %> + <% if draft_version.status == "draft" %> <%= t("admin.legislation.draft_versions.statuses.draft") %> <%= link_to "(#{t('.preview')})", legislation_process_draft_version_path(@process, draft_version) %> <% else %> diff --git a/app/views/admin/legislation/draft_versions/new.html.erb b/app/views/admin/legislation/draft_versions/new.html.erb index fb80d4344..90b2c634f 100644 --- a/app/views/admin/legislation/draft_versions/new.html.erb +++ b/app/views/admin/legislation/draft_versions/new.html.erb @@ -9,12 +9,12 @@

<%= @process.title %>

- <%= render 'admin/legislation/processes/subnav', process: @process, active: 'draft_versions' %> + <%= render "admin/legislation/processes/subnav", process: @process, active: "draft_versions" %>

<%= t("admin.legislation.draft_versions.new.title") %>

- <%= render 'form', url: admin_legislation_process_draft_versions_path(@process) %> + <%= render "form", url: admin_legislation_process_draft_versions_path(@process) %>
diff --git a/app/views/admin/legislation/homepages/_form.html.erb b/app/views/admin/legislation/homepages/_form.html.erb index aa3ee4151..d5e276aa2 100644 --- a/app/views/admin/legislation/homepages/_form.html.erb +++ b/app/views/admin/legislation/homepages/_form.html.erb @@ -16,7 +16,7 @@ <%= translations_form.cktext_area :homepage, language: I18n.locale, label: t("admin.legislation.processes.form.homepage"), - ckeditor: { height: 500, toolbar: 'admin' }, + ckeditor: { height: 500, toolbar: "admin" }, hint: t("admin.legislation.processes.form.homepage_description") %> diff --git a/app/views/admin/legislation/homepages/edit.html.erb b/app/views/admin/legislation/homepages/edit.html.erb index 982d0f0e2..d70b823a1 100644 --- a/app/views/admin/legislation/homepages/edit.html.erb +++ b/app/views/admin/legislation/homepages/edit.html.erb @@ -7,7 +7,7 @@

<%= @process.title %>

- <%= render 'admin/legislation/processes/subnav', process: @process, active: 'homepage' %> + <%= render "admin/legislation/processes/subnav", process: @process, active: "homepage" %> - <%= render 'form', url: admin_legislation_process_homepage_path(@process) %> + <%= render "form", url: admin_legislation_process_homepage_path(@process) %> diff --git a/app/views/admin/legislation/processes/_form.html.erb b/app/views/admin/legislation/processes/_form.html.erb index 7fbc5798f..eb9b1d6d2 100644 --- a/app/views/admin/legislation/processes/_form.html.erb +++ b/app/views/admin/legislation/processes/_form.html.erb @@ -172,7 +172,7 @@
- <%= render 'documents/nested_documents', documentable: @process, f: f %> + <%= render "documents/nested_documents", documentable: @process, f: f %>
@@ -180,7 +180,7 @@
- <%= render 'images/nested_image', imageable: @process, f: f %> + <%= render "images/nested_image", imageable: @process, f: f %>
diff --git a/app/views/admin/legislation/processes/edit.html.erb b/app/views/admin/legislation/processes/edit.html.erb index c6a5e1c2f..372792e7e 100644 --- a/app/views/admin/legislation/processes/edit.html.erb +++ b/app/views/admin/legislation/processes/edit.html.erb @@ -7,7 +7,7 @@

<%= @process.title %>

- <%= render 'subnav', process: @process, active: 'info' %> + <%= render "subnav", process: @process, active: "info" %> - <%= render 'form' %> + <%= render "form" %>
diff --git a/app/views/admin/legislation/processes/index.html.erb b/app/views/admin/legislation/processes/index.html.erb index b5207fc46..5e2a647c3 100644 --- a/app/views/admin/legislation/processes/index.html.erb +++ b/app/views/admin/legislation/processes/index.html.erb @@ -7,7 +7,7 @@ <%= link_to t("admin.legislation.processes.index.create"), new_admin_legislation_process_path, class: "button float-right" %> -<%= render 'shared/filter_subnav', i18n_namespace: "admin.legislation.processes.index" %> +<%= render "shared/filter_subnav", i18n_namespace: "admin.legislation.processes.index" %> <% if @processes.any? %>

<%= page_entries_info @processes %>

@@ -37,7 +37,7 @@ <%= link_to t("admin.legislation.processes.index.delete"), admin_legislation_process_path(process), method: :delete, - class: 'button hollow alert expanded' %> + class: "button hollow alert expanded" %> <% end %> diff --git a/app/views/admin/legislation/questions/_form.html.erb b/app/views/admin/legislation/questions/_form.html.erb index a6d91d906..daccb3dfe 100644 --- a/app/views/admin/legislation/questions/_form.html.erb +++ b/app/views/admin/legislation/questions/_form.html.erb @@ -32,7 +32,7 @@
<%= f.fields_for :question_options do |ff| %> - <%= render 'question_option_fields', f: ff %> + <%= render "question_option_fields", f: ff %> <% end %>
diff --git a/app/views/admin/legislation/questions/edit.html.erb b/app/views/admin/legislation/questions/edit.html.erb index e9e98b076..6db283eba 100644 --- a/app/views/admin/legislation/questions/edit.html.erb +++ b/app/views/admin/legislation/questions/edit.html.erb @@ -8,7 +8,7 @@

<%= @process.title %>

- <%= render 'admin/legislation/processes/subnav', process: @process, active: 'questions' %> + <%= render "admin/legislation/processes/subnav", process: @process, active: "questions" %>

<%= t("admin.legislation.questions.edit.title", question_title: @question.title) %>

@@ -16,10 +16,10 @@
<%= link_to t("admin.legislation.questions.index.delete"), admin_legislation_process_question_path(@process, @question), method: :delete, - class: 'button hollow alert' %> + class: "button hollow alert" %>
- <%= render 'form', url: admin_legislation_process_question_path(@process, @question) %> + <%= render "form", url: admin_legislation_process_question_path(@process, @question) %>
diff --git a/app/views/admin/legislation/questions/index.html.erb b/app/views/admin/legislation/questions/index.html.erb index 120ade4ca..77f6341ce 100644 --- a/app/views/admin/legislation/questions/index.html.erb +++ b/app/views/admin/legislation/questions/index.html.erb @@ -7,7 +7,7 @@

<%= @process.title %>

- <%= render 'admin/legislation/processes/subnav', process: @process, active: 'questions' %> + <%= render "admin/legislation/processes/subnav", process: @process, active: "questions" %>

<%= t("admin.legislation.questions.index.title") %>

@@ -42,7 +42,7 @@ <% end %> <%= question.answers_count %> - <%= link_to question.comments.count, legislation_process_question_path(@process, question, anchor: 'comments') %> + <%= link_to question.comments.count, legislation_process_question_path(@process, question, anchor: "comments") %> <% end %> diff --git a/app/views/admin/legislation/questions/new.html.erb b/app/views/admin/legislation/questions/new.html.erb index 68c003ee2..6b9c54519 100644 --- a/app/views/admin/legislation/questions/new.html.erb +++ b/app/views/admin/legislation/questions/new.html.erb @@ -8,11 +8,11 @@

<%= @process.title %>

- <%= render 'admin/legislation/processes/subnav', process: @process, active: 'questions' %> + <%= render "admin/legislation/processes/subnav", process: @process, active: "questions" %>

<%= t("admin.legislation.questions.new.title") %>

- <%= render 'form', url: admin_legislation_process_questions_path(@process) %> + <%= render "form", url: admin_legislation_process_questions_path(@process) %>
From e63a862882a18cca3f3794540130f0c3840480cd Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Thu, 14 Mar 2019 17:09:58 +0100 Subject: [PATCH 03/14] Use double quotes in app/views/admin/poll --- app/views/admin/poll/active_polls/_form.html.erb | 2 +- .../_search_booths_results.html.erb | 4 ++-- app/views/admin/poll/booth_assignments/show.html.erb | 2 +- app/views/admin/poll/booths/_form.html.erb | 2 +- .../_search_officers_results.html.erb | 4 ++-- .../poll/officer_assignments/by_officer.html.erb | 2 +- app/views/admin/poll/officers/_search.html.erb | 2 +- app/views/admin/poll/officers/index.html.erb | 4 ++-- app/views/admin/poll/polls/_form.html.erb | 2 +- app/views/admin/poll/questions/_filter.html.erb | 2 +- app/views/admin/poll/questions/_form.html.erb | 2 +- app/views/admin/poll/questions/_questions.html.erb | 2 +- .../admin/poll/questions/answers/_form.html.erb | 2 +- .../admin/poll/questions/answers/documents.html.erb | 4 ++-- .../poll/questions/answers/images/destroy.js.erb | 4 ++-- .../admin/poll/questions/answers/images/new.html.erb | 4 ++-- .../poll/questions/answers/videos/_form.html.erb | 2 +- .../admin/poll/questions/answers/videos/new.html.erb | 2 +- app/views/admin/poll/questions/index.html.erb | 2 +- app/views/admin/poll/questions/show.html.erb | 4 ++-- app/views/admin/poll/recounts/index.html.erb | 2 +- app/views/admin/poll/shifts/_form.html.erb | 12 ++++++------ .../poll/shifts/_search_officers_results.html.erb | 4 ++-- 23 files changed, 36 insertions(+), 36 deletions(-) diff --git a/app/views/admin/poll/active_polls/_form.html.erb b/app/views/admin/poll/active_polls/_form.html.erb index ae402258c..4e7fc766e 100644 --- a/app/views/admin/poll/active_polls/_form.html.erb +++ b/app/views/admin/poll/active_polls/_form.html.erb @@ -2,7 +2,7 @@ <%= translatable_form_for(@active_poll, url: form_url) do |f| %> - <%= render 'shared/errors', resource: @active_poll %> + <%= render "shared/errors", resource: @active_poll %> <%= f.translatable_fields do |translations_form| %>
diff --git a/app/views/admin/poll/booth_assignments/_search_booths_results.html.erb b/app/views/admin/poll/booth_assignments/_search_booths_results.html.erb index cebde154c..5bed2f427 100644 --- a/app/views/admin/poll/booth_assignments/_search_booths_results.html.erb +++ b/app/views/admin/poll/booth_assignments/_search_booths_results.html.erb @@ -1,9 +1,9 @@ <% if @booths.blank? %>
- <%= t('admin.shared.no_search_results') %> + <%= t("admin.shared.no_search_results") %>
<% else %> -

<%= t('admin.shared.search_results') %>

+

<%= t("admin.shared.search_results") %>

<% end %> <% if @booths.any? %> diff --git a/app/views/admin/poll/booth_assignments/show.html.erb b/app/views/admin/poll/booth_assignments/show.html.erb index 4e395c6aa..5eb28ec7f 100644 --- a/app/views/admin/poll/booth_assignments/show.html.erb +++ b/app/views/admin/poll/booth_assignments/show.html.erb @@ -64,7 +64,7 @@ - <%= total_recounts_by_booth(@booth_assignment) || '-' %> + <%= total_recounts_by_booth(@booth_assignment) || "-" %> <%= @booth_assignment.voters.count %> diff --git a/app/views/admin/poll/booths/_form.html.erb b/app/views/admin/poll/booths/_form.html.erb index 5445144af..26788dcf5 100644 --- a/app/views/admin/poll/booths/_form.html.erb +++ b/app/views/admin/poll/booths/_form.html.erb @@ -1,6 +1,6 @@
<%= f.text_field :name, - placeholder: t('admin.booths.new.name'), + placeholder: t("admin.booths.new.name"), label: t("admin.booths.new.name") %>
diff --git a/app/views/admin/poll/officer_assignments/_search_officers_results.html.erb b/app/views/admin/poll/officer_assignments/_search_officers_results.html.erb index ee009f1fa..67eddef60 100644 --- a/app/views/admin/poll/officer_assignments/_search_officers_results.html.erb +++ b/app/views/admin/poll/officer_assignments/_search_officers_results.html.erb @@ -1,9 +1,9 @@ <% if @officers.blank? %>
- <%= t('admin.shared.no_search_results') %> + <%= t("admin.shared.no_search_results") %>
<% else %> -

<%= t('admin.shared.search_results') %>

+

<%= t("admin.shared.search_results") %>

<% end %> <% if @officers.any? %> diff --git a/app/views/admin/poll/officer_assignments/by_officer.html.erb b/app/views/admin/poll/officer_assignments/by_officer.html.erb index c6738eba0..21e4c9b0c 100644 --- a/app/views/admin/poll/officer_assignments/by_officer.html.erb +++ b/app/views/admin/poll/officer_assignments/by_officer.html.erb @@ -21,7 +21,7 @@ <% @officer_assignments.each do |officer_assignment| %> - <%= l(officer_assignment.date.to_date)%> <%= content_tag :strong, t('polls.final_date') if officer_assignment.final %> + <%= l(officer_assignment.date.to_date)%> <%= content_tag :strong, t("polls.final_date") if officer_assignment.final %> <%= booth_name_with_location(officer_assignment.booth_assignment.booth) %> <% end %> diff --git a/app/views/admin/poll/officers/_search.html.erb b/app/views/admin/poll/officers/_search.html.erb index dda22dee2..92e8a2de5 100644 --- a/app/views/admin/poll/officers/_search.html.erb +++ b/app/views/admin/poll/officers/_search.html.erb @@ -1,6 +1,6 @@ <%= form_tag search_admin_officers_path, method: :get, remote: true do %>
- <%= text_field_tag :email, '', + <%= text_field_tag :email, "", placeholder: t("admin.poll_officers.search.email_placeholder") %>
<%= submit_tag t("admin.poll_officers.search.search"), class: "button" %> diff --git a/app/views/admin/poll/officers/index.html.erb b/app/views/admin/poll/officers/index.html.erb index 433d0fdbf..640369feb 100644 --- a/app/views/admin/poll/officers/index.html.erb +++ b/app/views/admin/poll/officers/index.html.erb @@ -1,7 +1,7 @@

<%= t("admin.poll_officers.index.title") %>

- <%= render 'search' %> + <%= render "search" %>
@@ -49,4 +49,4 @@ <%= paginate @officers %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/admin/poll/polls/_form.html.erb b/app/views/admin/poll/polls/_form.html.erb index 49939e8fd..f0fc03a5b 100644 --- a/app/views/admin/poll/polls/_form.html.erb +++ b/app/views/admin/poll/polls/_form.html.erb @@ -33,7 +33,7 @@ <% end %>
- <%= render 'images/admin_image', imageable: @poll, f: f %> + <%= render "images/admin_image", imageable: @poll, f: f %>
diff --git a/app/views/admin/poll/questions/_filter.html.erb b/app/views/admin/poll/questions/_filter.html.erb index 0fd800067..b3fca61c5 100644 --- a/app/views/admin/poll/questions/_filter.html.erb +++ b/app/views/admin/poll/questions/_filter.html.erb @@ -1,4 +1,4 @@ -<%= form_tag '', method: :get do %> +<%= form_tag "", method: :get do %> <%= label_tag :poll_id, t("admin.questions.index.filter_poll") %> <%= select_tag "poll_id", poll_select_options(true), diff --git a/app/views/admin/poll/questions/_form.html.erb b/app/views/admin/poll/questions/_form.html.erb index 2e763521b..f0ca89b0d 100644 --- a/app/views/admin/poll/questions/_form.html.erb +++ b/app/views/admin/poll/questions/_form.html.erb @@ -2,7 +2,7 @@ <%= translatable_form_for(@question, url: form_url) do |f| %> - <%= render 'shared/errors', resource: @question %> + <%= render "shared/errors", resource: @question %> <%= f.hidden_field :proposal_id %> diff --git a/app/views/admin/poll/questions/_questions.html.erb b/app/views/admin/poll/questions/_questions.html.erb index b1703f955..489a700f6 100644 --- a/app/views/admin/poll/questions/_questions.html.erb +++ b/app/views/admin/poll/questions/_questions.html.erb @@ -1,5 +1,5 @@
- <%= render 'filter' %> + <%= render "filter" %>
<% if @questions.count == 0 %> diff --git a/app/views/admin/poll/questions/answers/_form.html.erb b/app/views/admin/poll/questions/answers/_form.html.erb index 9759f6935..7598494a9 100644 --- a/app/views/admin/poll/questions/answers/_form.html.erb +++ b/app/views/admin/poll/questions/answers/_form.html.erb @@ -2,7 +2,7 @@ <%= translatable_form_for(@answer, url: form_url) do |f| %> - <%= render 'shared/errors', resource: @answer %> + <%= render "shared/errors", resource: @answer %> <%= f.hidden_field :question_id, value: @answer.question_id || @question.id %> diff --git a/app/views/admin/poll/questions/answers/documents.html.erb b/app/views/admin/poll/questions/answers/documents.html.erb index 933be2b94..6bef094c6 100644 --- a/app/views/admin/poll/questions/answers/documents.html.erb +++ b/app/views/admin/poll/questions/answers/documents.html.erb @@ -12,10 +12,10 @@ url: admin_answer_path(@answer), method: :put) do |f| %> - <%= render 'shared/errors', resource: @answer %> + <%= render "shared/errors", resource: @answer %>
- <%= render 'documents/nested_documents', documentable: @answer, f: f %> + <%= render "documents/nested_documents", documentable: @answer, f: f %>
diff --git a/app/views/admin/poll/questions/answers/images/destroy.js.erb b/app/views/admin/poll/questions/answers/images/destroy.js.erb index 9b495b605..3a10a1cff 100644 --- a/app/views/admin/poll/questions/answers/images/destroy.js.erb +++ b/app/views/admin/poll/questions/answers/images/destroy.js.erb @@ -1,3 +1,3 @@ -$('.delete').bind('ajax:success', function () { - $(this).closest('div').fadeOut() +$(".delete").bind("ajax:success", function () { + $(this).closest("div").fadeOut() }) diff --git a/app/views/admin/poll/questions/answers/images/new.html.erb b/app/views/admin/poll/questions/answers/images/new.html.erb index 00d753445..dfd4b8cfb 100644 --- a/app/views/admin/poll/questions/answers/images/new.html.erb +++ b/app/views/admin/poll/questions/answers/images/new.html.erb @@ -2,10 +2,10 @@ <%= form_for(Poll::Question::Answer.new, url: admin_answer_images_path(@answer), method: :post) do |f| %> - <%= render 'shared/errors', resource: @answer %> + <%= render "shared/errors", resource: @answer %>
- <%= render 'images/nested_image', imageable: @answer, f: f, image_fields: :images %> + <%= render "images/nested_image", imageable: @answer, f: f, image_fields: :images %>
<%= f.submit t("admin.questions.answers.images.save_image"), class: "button success" %> diff --git a/app/views/admin/poll/questions/answers/videos/_form.html.erb b/app/views/admin/poll/questions/answers/videos/_form.html.erb index 28035c397..0381706e0 100644 --- a/app/views/admin/poll/questions/answers/videos/_form.html.erb +++ b/app/views/admin/poll/questions/answers/videos/_form.html.erb @@ -1,6 +1,6 @@ <%= form_for(@video, url: form_url) do |f| %> - <%= render 'shared/errors', resource: @video %> + <%= render "shared/errors", resource: @video %> <%= f.hidden_field :answer_id, value: @video.answer_id || @answer.id %> diff --git a/app/views/admin/poll/questions/answers/videos/new.html.erb b/app/views/admin/poll/questions/answers/videos/new.html.erb index d114b9104..564817e3f 100644 --- a/app/views/admin/poll/questions/answers/videos/new.html.erb +++ b/app/views/admin/poll/questions/answers/videos/new.html.erb @@ -1,7 +1,7 @@ <%= back_link_to admin_answer_videos_path(@answer) %>

- <%= t('admin.answers.videos.new.title') %> + <%= t("admin.answers.videos.new.title") %>

diff --git a/app/views/admin/poll/questions/index.html.erb b/app/views/admin/poll/questions/index.html.erb index fcb232ecd..d5fac81e4 100644 --- a/app/views/admin/poll/questions/index.html.erb +++ b/app/views/admin/poll/questions/index.html.erb @@ -4,7 +4,7 @@ class: "button float-right" %>
- <%= render 'search' %> + <%= render "search" %>
diff --git a/app/views/admin/poll/questions/show.html.erb b/app/views/admin/poll/questions/show.html.erb index 094ebff83..88daffcc6 100644 --- a/app/views/admin/poll/questions/show.html.erb +++ b/app/views/admin/poll/questions/show.html.erb @@ -1,6 +1,6 @@ <%= back_link_to %> -<%= link_to t('admin.questions.show.edit_question'), edit_admin_question_path(@question), +<%= link_to t("admin.questions.show.edit_question"), edit_admin_question_path(@question), class: "button hollow float-right" %>
@@ -37,7 +37,7 @@ diff --git a/app/views/admin/poll/recounts/index.html.erb b/app/views/admin/poll/recounts/index.html.erb index f55facfbd..5b73f9c34 100644 --- a/app/views/admin/poll/recounts/index.html.erb +++ b/app/views/admin/poll/recounts/index.html.erb @@ -40,7 +40,7 @@
- <%= t('admin.questions.show.valid_answers') %> + <%= t("admin.questions.show.valid_answers") %>
- <%= link_to booth_assignment.booth.name, admin_poll_booth_assignment_path(@poll, booth_assignment, anchor: 'tab-recounts') %> + <%= link_to booth_assignment.booth.name, admin_poll_booth_assignment_path(@poll, booth_assignment, anchor: "tab-recounts") %> diff --git a/app/views/admin/poll/shifts/_form.html.erb b/app/views/admin/poll/shifts/_form.html.erb index 7e2930751..0ea7cfb4a 100644 --- a/app/views/admin/poll/shifts/_form.html.erb +++ b/app/views/admin/poll/shifts/_form.html.erb @@ -18,22 +18,22 @@ Poll::Shift.tasks.map {|k,v| [t("admin.poll_shifts.#{k}"), k]}, { prompt: t("admin.poll_shifts.new.select_task"), label: false }, - class: 'js-poll-shifts' %> + class: "js-poll-shifts" %>
- <%= select 'shift[date]', 'vote_collection_date', + <%= select "shift[date]", "vote_collection_date", options_for_select(shift_vote_collection_dates(@booth, @voting_polls)), { prompt: @voting_polls.present? ? t("admin.poll_shifts.new.select_date") : t("admin.poll_shifts.new.no_voting_days"), label: false }, - class: 'js-shift-vote-collection-dates' %> - <%= select 'shift[date]', 'recount_scrutiny_date', + class: "js-shift-vote-collection-dates" %> + <%= select "shift[date]", "recount_scrutiny_date", options_for_select(shift_recount_scrutiny_dates(@booth, @recount_polls)), { prompt: t("admin.poll_shifts.new.select_date"), label: false }, - class: 'js-shift-recount-scrutiny-dates', - hidden: 'hidden' %> + class: "js-shift-recount-scrutiny-dates", + hidden: "hidden" %>
<%= f.hidden_field :booth_id, value: @booth.id %> diff --git a/app/views/admin/poll/shifts/_search_officers_results.html.erb b/app/views/admin/poll/shifts/_search_officers_results.html.erb index 70525ba6d..b19db5e79 100644 --- a/app/views/admin/poll/shifts/_search_officers_results.html.erb +++ b/app/views/admin/poll/shifts/_search_officers_results.html.erb @@ -1,9 +1,9 @@ <% if @officers.blank? %>
- <%= t('admin.shared.no_search_results') %> + <%= t("admin.shared.no_search_results") %>
<% else %> -

<%= t('admin.shared.search_results') %>

+

<%= t("admin.shared.search_results") %>

From c32a98be100349e0edea8e8cc749f076361eddd7 Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Thu, 14 Mar 2019 17:10:31 +0100 Subject: [PATCH 04/14] Use double quotes in app/views/admin/site_customization --- app/views/admin/site_customization/cards/_card.html.erb | 2 +- .../admin/site_customization/content_blocks/_form.html.erb | 4 ++-- .../admin/site_customization/content_blocks/edit.html.erb | 2 +- .../admin/site_customization/content_blocks/new.html.erb | 2 +- app/views/admin/site_customization/images/index.html.erb | 4 ++-- .../admin/site_customization/information_texts/_tabs.html.erb | 2 +- .../admin/site_customization/information_texts/index.html.erb | 2 +- app/views/admin/site_customization/pages/edit.html.erb | 2 +- app/views/admin/site_customization/pages/new.html.erb | 2 +- 9 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/views/admin/site_customization/cards/_card.html.erb b/app/views/admin/site_customization/cards/_card.html.erb index 2271f87a1..44a49f989 100644 --- a/app/views/admin/site_customization/cards/_card.html.erb +++ b/app/views/admin/site_customization/cards/_card.html.erb @@ -24,7 +24,7 @@ <%= link_to t("admin.actions.delete"), admin_widget_card_path(card, page_id: params[:page_id]), method: :delete, - data: { confirm: t('admin.actions.confirm') }, + data: { confirm: t("admin.actions.confirm") }, class: "button hollow alert" %> diff --git a/app/views/admin/site_customization/content_blocks/_form.html.erb b/app/views/admin/site_customization/content_blocks/_form.html.erb index 7f7799d2c..6f2b99a18 100644 --- a/app/views/admin/site_customization/content_blocks/_form.html.erb +++ b/app/views/admin/site_customization/content_blocks/_form.html.erb @@ -1,5 +1,5 @@ <% if @is_heading_content_block %> - <%= render 'form_heading_content_block' %> + <%= render "form_heading_content_block" %> <% else %> - <%= render 'form_content_block' %> + <%= render "form_content_block" %> <% end %> diff --git a/app/views/admin/site_customization/content_blocks/edit.html.erb b/app/views/admin/site_customization/content_blocks/edit.html.erb index c81a0d11c..6d0efd5e9 100644 --- a/app/views/admin/site_customization/content_blocks/edit.html.erb +++ b/app/views/admin/site_customization/content_blocks/edit.html.erb @@ -13,4 +13,4 @@

<%= t("admin.site_customization.content_blocks.edit.title") %>

-<%= render 'form' %> +<%= render "form" %> diff --git a/app/views/admin/site_customization/content_blocks/new.html.erb b/app/views/admin/site_customization/content_blocks/new.html.erb index b1bf7cf92..c73ef5625 100644 --- a/app/views/admin/site_customization/content_blocks/new.html.erb +++ b/app/views/admin/site_customization/content_blocks/new.html.erb @@ -8,4 +8,4 @@

<%= t("admin.site_customization.content_blocks.new.title") %>

-<%= render 'form' %> +<%= render "form" %> diff --git a/app/views/admin/site_customization/images/index.html.erb b/app/views/admin/site_customization/images/index.html.erb index cc974c279..8626751c5 100644 --- a/app/views/admin/site_customization/images/index.html.erb +++ b/app/views/admin/site_customization/images/index.html.erb @@ -20,8 +20,8 @@ <%= f.file_field :image, label: false %>
- <%= f.submit(t('admin.site_customization.images.index.update'), class: "button hollow") %> - <%= link_to t('admin.site_customization.images.index.delete'), admin_site_customization_image_path(image), method: :delete, class: "button hollow alert" if image.image.exists? %> + <%= f.submit(t("admin.site_customization.images.index.update"), class: "button hollow") %> + <%= link_to t("admin.site_customization.images.index.delete"), admin_site_customization_image_path(image), method: :delete, class: "button hollow alert" if image.image.exists? %>
<% end %> diff --git a/app/views/admin/site_customization/information_texts/_tabs.html.erb b/app/views/admin/site_customization/information_texts/_tabs.html.erb index 0b6cd61fe..0a459d139 100644 --- a/app/views/admin/site_customization/information_texts/_tabs.html.erb +++ b/app/views/admin/site_customization/information_texts/_tabs.html.erb @@ -2,7 +2,7 @@ <% [:debates, :community, :proposals, :polls, :layouts, :mailers, :management, :welcome].each do |tab| %>
  • <% if tab.to_s == @tab %> - <%= link_to t("admin.menu.site_customization.information_texts_menu.#{tab}"), admin_site_customization_information_texts_path(tab: tab), :class => 'is-active' %> + <%= link_to t("admin.menu.site_customization.information_texts_menu.#{tab}"), admin_site_customization_information_texts_path(tab: tab), :class => "is-active" %> <% else %> <%= link_to t("admin.menu.site_customization.information_texts_menu.#{tab}"), admin_site_customization_information_texts_path(tab: tab) %> <% end %> diff --git a/app/views/admin/site_customization/information_texts/index.html.erb b/app/views/admin/site_customization/information_texts/index.html.erb index f41102d97..16d3d7f32 100644 --- a/app/views/admin/site_customization/information_texts/index.html.erb +++ b/app/views/admin/site_customization/information_texts/index.html.erb @@ -1,7 +1,7 @@

    <%= t("admin.menu.site_customization.information_texts") %>

    - <%= render 'tabs' %> + <%= render "tabs" %> -<%= render 'form' %> +<%= render "form" %> diff --git a/app/views/admin/site_customization/pages/new.html.erb b/app/views/admin/site_customization/pages/new.html.erb index a059f0eb5..b180e73d7 100644 --- a/app/views/admin/site_customization/pages/new.html.erb +++ b/app/views/admin/site_customization/pages/new.html.erb @@ -8,4 +8,4 @@

    <%= t("admin.site_customization.pages.new.title") %>

    -<%= render 'form' %> +<%= render "form" %> From 0bb2633c7aa8df1da8763b7d9ae38eb79d5d3258 Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Thu, 14 Mar 2019 17:11:04 +0100 Subject: [PATCH 05/14] Use double quotes in app/views/admin --- app/views/admin/activity/show.html.erb | 2 +- app/views/admin/admin_notifications/_form.html.erb | 2 +- app/views/admin/admin_notifications/show.html.erb | 2 +- app/views/admin/administrators/index.html.erb | 6 +++--- app/views/admin/administrators/search.html.erb | 6 +++--- app/views/admin/banners/_form.html.erb | 2 +- app/views/admin/banners/index.html.erb | 6 +++--- app/views/admin/comments/index.html.erb | 2 +- app/views/admin/dashboard/index.html.erb | 2 +- app/views/admin/debates/index.html.erb | 2 +- app/views/admin/geozones/edit.html.erb | 2 +- app/views/admin/geozones/new.html.erb | 2 +- .../admin/hidden_budget_investments/index.html.erb | 2 +- app/views/admin/hidden_proposals/index.html.erb | 2 +- app/views/admin/hidden_users/index.html.erb | 2 +- app/views/admin/homepage/_card.html.erb | 2 +- app/views/admin/managers/index.html.erb | 6 +++--- app/views/admin/managers/search.html.erb | 6 +++--- app/views/admin/milestone_statuses/_form.html.erb | 2 +- app/views/admin/milestone_statuses/edit.html.erb | 2 +- app/views/admin/milestone_statuses/new.html.erb | 2 +- app/views/admin/milestones/_form.html.erb | 8 ++++---- app/views/admin/milestones/_milestones.html.erb | 2 +- app/views/admin/moderators/index.html.erb | 8 ++++---- app/views/admin/moderators/search.html.erb | 6 +++--- app/views/admin/newsletters/_form.html.erb | 2 +- app/views/admin/officials/edit.html.erb | 2 +- app/views/admin/officials/index.html.erb | 2 +- app/views/admin/officials/search.html.erb | 4 ++-- app/views/admin/organizations/index.html.erb | 2 +- app/views/admin/proposal_notifications/index.html.erb | 2 +- app/views/admin/settings/_configuration.html.erb | 2 +- app/views/admin/settings/_map_form.html.erb | 4 ++-- .../admin/shared/_common_globalize_locales.html.erb | 2 +- app/views/admin/signature_sheets/new.html.erb | 4 ++-- app/views/admin/spending_proposals/edit.html.erb | 6 +++--- app/views/admin/spending_proposals/index.html.erb | 4 ++-- app/views/admin/spending_proposals/show.html.erb | 10 +++++----- app/views/admin/spending_proposals/summary.html.erb | 10 +++++----- app/views/admin/stats/show.html.erb | 2 +- app/views/admin/system_emails/index.html.erb | 2 +- .../_proposal_notification_digest.html.erb | 4 ++-- app/views/admin/system_emails/view.html.erb | 2 +- app/views/admin/users/index.html.erb | 4 ++-- app/views/admin/valuator_groups/index.html.erb | 2 +- app/views/admin/valuator_groups/show.html.erb | 2 +- app/views/admin/valuators/search.html.erb | 2 +- app/views/admin/verifications/_pending_step.html.erb | 4 ++-- app/views/admin/verifications/index.html.erb | 2 +- app/views/admin/widget/cards/_form.html.erb | 2 +- 50 files changed, 85 insertions(+), 85 deletions(-) diff --git a/app/views/admin/activity/show.html.erb b/app/views/admin/activity/show.html.erb index 3f82369ea..325e70857 100644 --- a/app/views/admin/activity/show.html.erb +++ b/app/views/admin/activity/show.html.erb @@ -2,7 +2,7 @@

    <%= t("admin.activity.show.title") %>

    -<%= render 'shared/filter_subnav', i18n_namespace: "admin.activity.show" %> +<%= render "shared/filter_subnav", i18n_namespace: "admin.activity.show" %> <% if @activity.any? %>

    <%= page_entries_info @activity %>

    diff --git a/app/views/admin/admin_notifications/_form.html.erb b/app/views/admin/admin_notifications/_form.html.erb index 081777ccb..0048c93a5 100644 --- a/app/views/admin/admin_notifications/_form.html.erb +++ b/app/views/admin/admin_notifications/_form.html.erb @@ -1,7 +1,7 @@ <%= render "admin/shared/globalize_locales", resource: @admin_notification %> <%= translatable_form_for [:admin, @admin_notification] do |f| %> - <%= render 'shared/errors', resource: @admin_notification %> + <%= render "shared/errors", resource: @admin_notification %> <%= f.select :segment_recipient, options_for_select(user_segments_options, @admin_notification[:segment_recipient]) %> diff --git a/app/views/admin/admin_notifications/show.html.erb b/app/views/admin/admin_notifications/show.html.erb index 77296e3ed..2fc79cf0e 100644 --- a/app/views/admin/admin_notifications/show.html.erb +++ b/app/views/admin/admin_notifications/show.html.erb @@ -55,7 +55,7 @@ title: @admin_notification.title, body: @admin_notification.body, timestamp: Time.current } %> - <% link_text = render partial: '/notifications/notification_body', locals: locals %> + <% link_text = render partial: "/notifications/notification_body", locals: locals %> <%= link_to_if @admin_notification.link.present?, link_text, @admin_notification.link %>
  • diff --git a/app/views/admin/administrators/index.html.erb b/app/views/admin/administrators/index.html.erb index c607608d6..c727114bf 100644 --- a/app/views/admin/administrators/index.html.erb +++ b/app/views/admin/administrators/index.html.erb @@ -1,6 +1,6 @@

    <%= t("admin.administrators.index.title") %>

    -<%= render 'admin/shared/user_search', url: search_admin_administrators_path %> +<%= render "admin/shared/user_search", url: search_admin_administrators_path %>
    <% if @administrators.any? %> @@ -26,13 +26,13 @@
    diff --git a/app/views/admin/comments/index.html.erb b/app/views/admin/comments/index.html.erb index 3af3b7d6e..adf27701e 100644 --- a/app/views/admin/comments/index.html.erb +++ b/app/views/admin/comments/index.html.erb @@ -1,7 +1,7 @@

    <%= t("admin.comments.index.title") %>

    <%= t("admin.shared.moderated_content") %>

    -<%= render 'shared/filter_subnav', i18n_namespace: "admin.comments.index" %> +<%= render "shared/filter_subnav", i18n_namespace: "admin.comments.index" %> <% if @comments.any? %>

    <%= page_entries_info @comments %>

    diff --git a/app/views/admin/dashboard/index.html.erb b/app/views/admin/dashboard/index.html.erb index afd94e993..efcc29472 100644 --- a/app/views/admin/dashboard/index.html.erb +++ b/app/views/admin/dashboard/index.html.erb @@ -1,3 +1,3 @@

    <%= t("admin.dashboard.index.title") %>

    -

    <%= t("admin.dashboard.index.description", org: setting['org_name']) %>

    +

    <%= t("admin.dashboard.index.description", org: setting["org_name"]) %>

    diff --git a/app/views/admin/debates/index.html.erb b/app/views/admin/debates/index.html.erb index c0150dd84..45a992f3e 100644 --- a/app/views/admin/debates/index.html.erb +++ b/app/views/admin/debates/index.html.erb @@ -1,7 +1,7 @@

    <%= t("admin.debates.index.title") %>

    <%= t("admin.shared.moderated_content") %>

    -<%= render 'shared/filter_subnav', i18n_namespace: "admin.debates.index" %> +<%= render "shared/filter_subnav", i18n_namespace: "admin.debates.index" %> <% if @debates.any? %>

    <%= page_entries_info @debates %>

    diff --git a/app/views/admin/geozones/edit.html.erb b/app/views/admin/geozones/edit.html.erb index 45e037994..107ef505d 100644 --- a/app/views/admin/geozones/edit.html.erb +++ b/app/views/admin/geozones/edit.html.erb @@ -4,4 +4,4 @@

    <%= t("admin.geozones.edit.editing") %>

    -<%= render 'form' %> +<%= render "form" %> diff --git a/app/views/admin/geozones/new.html.erb b/app/views/admin/geozones/new.html.erb index 0b1df5268..d29c9eac0 100644 --- a/app/views/admin/geozones/new.html.erb +++ b/app/views/admin/geozones/new.html.erb @@ -4,4 +4,4 @@

    <%= t("admin.geozones.new.creating") %>

    -<%= render 'form' %> +<%= render "form" %> diff --git a/app/views/admin/hidden_budget_investments/index.html.erb b/app/views/admin/hidden_budget_investments/index.html.erb index 68f5f6ce6..39cc71710 100644 --- a/app/views/admin/hidden_budget_investments/index.html.erb +++ b/app/views/admin/hidden_budget_investments/index.html.erb @@ -1,7 +1,7 @@

    <%= t("admin.hidden_budget_investments.index.title") %>

    <%= t("admin.shared.moderated_content") %>

    -<%= render 'shared/filter_subnav', i18n_namespace: "admin.hidden_budget_investments.index" %> +<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_budget_investments.index" %> <% if @investments.any? %>

    <%= page_entries_info @investments %>

    diff --git a/app/views/admin/hidden_proposals/index.html.erb b/app/views/admin/hidden_proposals/index.html.erb index 8be956a1d..c0af9bc59 100644 --- a/app/views/admin/hidden_proposals/index.html.erb +++ b/app/views/admin/hidden_proposals/index.html.erb @@ -1,7 +1,7 @@

    <%= t("admin.hidden_proposals.index.title") %>

    <%= t("admin.shared.moderated_content") %>

    -<%= render 'shared/filter_subnav', i18n_namespace: "admin.hidden_proposals.index" %> +<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_proposals.index" %> <% if @proposals.any? %>

    <%= page_entries_info @proposals %>

    diff --git a/app/views/admin/hidden_users/index.html.erb b/app/views/admin/hidden_users/index.html.erb index 87d04d579..d02a42e0b 100644 --- a/app/views/admin/hidden_users/index.html.erb +++ b/app/views/admin/hidden_users/index.html.erb @@ -1,7 +1,7 @@

    <%= t("admin.hidden_users.index.title") %>

    <%= t("admin.shared.moderated_content") %>

    -<%= render 'shared/filter_subnav', i18n_namespace: "admin.hidden_users.index" %> +<%= render "shared/filter_subnav", i18n_namespace: "admin.hidden_users.index" %> <% if @users.any? %>

    <%= page_entries_info @users %>

    diff --git a/app/views/admin/homepage/_card.html.erb b/app/views/admin/homepage/_card.html.erb index edbd79abc..7e5481a08 100644 --- a/app/views/admin/homepage/_card.html.erb +++ b/app/views/admin/homepage/_card.html.erb @@ -24,7 +24,7 @@ <%= link_to t("admin.actions.delete"), admin_widget_card_path(card), method: :delete, - data: { confirm: t('admin.actions.confirm') }, + data: { confirm: t("admin.actions.confirm") }, class: "button hollow alert" %> diff --git a/app/views/admin/managers/index.html.erb b/app/views/admin/managers/index.html.erb index 2077c6a6b..b9121ac8a 100644 --- a/app/views/admin/managers/index.html.erb +++ b/app/views/admin/managers/index.html.erb @@ -1,6 +1,6 @@

    <%= t("admin.managers.index.title") %>

    -<%= render 'admin/shared/user_search', url: search_admin_managers_path %> +<%= render "admin/shared/user_search", url: search_admin_managers_path %>
    <% if @managers.any? %> @@ -23,13 +23,13 @@
    diff --git a/app/views/admin/settings/_map_form.html.erb b/app/views/admin/settings/_map_form.html.erb index 9c411bb12..4a25082f7 100644 --- a/app/views/admin/settings/_map_form.html.erb +++ b/app/views/admin/settings/_map_form.html.erb @@ -15,7 +15,7 @@ data-zoom-input-selector="#zoom"> - <%= form_tag admin_update_map_path, method: :put, id: 'map-form' do |f| %> + <%= form_tag admin_update_map_path, method: :put, id: "map-form" do |f| %> <%= hidden_field_tag :latitude, Setting["map_latitude"] %> <%= hidden_field_tag :longitude, Setting["map_longitude"] %> @@ -28,4 +28,4 @@ <% end %> - \ No newline at end of file + diff --git a/app/views/admin/shared/_common_globalize_locales.html.erb b/app/views/admin/shared/_common_globalize_locales.html.erb index 7b7e82821..085cad58a 100644 --- a/app/views/admin/shared/_common_globalize_locales.html.erb +++ b/app/views/admin/shared/_common_globalize_locales.html.erb @@ -4,7 +4,7 @@ <%= link_to t("admin.translations.remove_language"), "#", id: "js_delete_#{locale}", style: display_translation_style(resource, locale), - class: 'delete js-delete-language', + class: "delete js-delete-language", data: { locale: locale } %> <% end %> diff --git a/app/views/admin/signature_sheets/new.html.erb b/app/views/admin/signature_sheets/new.html.erb index bec2f359d..e478fc207 100644 --- a/app/views/admin/signature_sheets/new.html.erb +++ b/app/views/admin/signature_sheets/new.html.erb @@ -3,7 +3,7 @@

    <%= t("admin.signature_sheets.new.title") %>

    <%= form_for [:admin, @signature_sheet] do |f| %> - <%= render 'shared/errors', + <%= render "shared/errors", resource: @signature_sheet %>
    @@ -19,4 +19,4 @@ <%= f.text_area :document_numbers, rows: "6", label: false, aria: {describedby: "document-numbers-help-text"} %> <%= f.submit(class: "button", value: t("admin.signature_sheets.new.submit")) %> -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/admin/spending_proposals/edit.html.erb b/app/views/admin/spending_proposals/edit.html.erb index 1fd86da59..f7a4d545d 100644 --- a/app/views/admin/spending_proposals/edit.html.erb +++ b/app/views/admin/spending_proposals/edit.html.erb @@ -1,4 +1,4 @@ -<%= link_to admin_spending_proposal_path(@spending_proposal, SpendingProposal.filter_params(params)), class: 'back' do %> +<%= link_to admin_spending_proposal_path(@spending_proposal, SpendingProposal.filter_params(params)), class: "back" do %> <%= t("admin.spending_proposals.show.back") %> <% end %> @@ -52,7 +52,7 @@ <%= f.text_field :tag_list, value: @spending_proposal.tag_list.to_s, label: false, placeholder: t("admin.spending_proposals.edit.tags_placeholder"), - class: 'js-tag-list' %> + class: "js-tag-list" %>
    @@ -70,4 +70,4 @@ <% end %>
    -<%= render 'valuation/spending_proposals/written_by_valuators' %> +<%= render "valuation/spending_proposals/written_by_valuators" %> diff --git a/app/views/admin/spending_proposals/index.html.erb b/app/views/admin/spending_proposals/index.html.erb index a1fe52c1b..281e0131c 100644 --- a/app/views/admin/spending_proposals/index.html.erb +++ b/app/views/admin/spending_proposals/index.html.erb @@ -44,7 +44,7 @@ <% end %>
    -<%= render 'shared/filter_subnav', i18n_namespace: "admin.spending_proposals.index" %> +<%= render "shared/filter_subnav", i18n_namespace: "admin.spending_proposals.index" %>

    <%= page_entries_info @spending_proposals %>

    @@ -68,7 +68,7 @@ <% if spending_proposal.valuators.size == 0 %> <%= t("admin.spending_proposals.index.no_valuators_assigned") %> <% else %> - <%= spending_proposal.valuators.collect(&:description_or_name).join(', ') %> + <%= spending_proposal.valuators.collect(&:description_or_name).join(", ") %> <% end %> - <%= render partial: 'group', collection: @groups %> + <%= render partial: "group", collection: @groups %>
    <% if administrator.persisted? %> - <%= link_to t('admin.administrators.administrator.delete'), + <%= link_to t("admin.administrators.administrator.delete"), admin_administrator_path(administrator), method: :delete, class: "button hollow alert expanded" %> <% else %> - <%= link_to t('admin.administrators.administrator.add'), + <%= link_to t("admin.administrators.administrator.add"), { controller: "admin/administrators", action: :create, user_id: administrator.user_id }, method: :post, diff --git a/app/views/admin/administrators/search.html.erb b/app/views/admin/administrators/search.html.erb index d8ab78511..e8beec208 100644 --- a/app/views/admin/administrators/search.html.erb +++ b/app/views/admin/administrators/search.html.erb @@ -1,6 +1,6 @@

    <%= t("admin.administrators.search.title") %>

    -<%= render 'admin/shared/user_search', url: search_admin_administrators_path %> +<%= render "admin/shared/user_search", url: search_admin_administrators_path %>
    <% if @users.any? %> @@ -19,12 +19,12 @@
    <%= user.email %> <% if user.administrator? && user.administrator.persisted? %> - <%= link_to t('admin.administrators.administrator.delete'), + <%= link_to t("admin.administrators.administrator.delete"), admin_administrator_path(user), method: :delete, class: "button hollow alert expanded" %> <% else %> - <%= link_to t('admin.administrators.administrator.add'), + <%= link_to t("admin.administrators.administrator.add"), { controller: "admin/administrators", action: :create, user_id: user }, diff --git a/app/views/admin/banners/_form.html.erb b/app/views/admin/banners/_form.html.erb index 5c878139e..dc01b2918 100644 --- a/app/views/admin/banners/_form.html.erb +++ b/app/views/admin/banners/_form.html.erb @@ -2,7 +2,7 @@ <%= translatable_form_for [:admin, @banner] do |f| %> - <%= render 'errors' %> + <%= render "errors" %>
    <% date_started_at = @banner.post_started_at.present? ? I18n.localize(@banner.post_started_at) : "" %> diff --git a/app/views/admin/banners/index.html.erb b/app/views/admin/banners/index.html.erb index f25841420..8ab4463d8 100644 --- a/app/views/admin/banners/index.html.erb +++ b/app/views/admin/banners/index.html.erb @@ -3,7 +3,7 @@

    <%= t("admin.banners.index.title") %>

    -<%= render 'shared/filter_subnav', i18n_namespace: "admin.banners.index" %> +<%= render "shared/filter_subnav", i18n_namespace: "admin.banners.index" %>

    <%= page_entries_info @banners %>

    @@ -23,12 +23,12 @@
    <%= link_to t("admin.banners.index.edit"), edit_admin_banner_path(banner), - class: 'button hollow expanded' %> + class: "button hollow expanded" %>
    <%= link_to t("admin.banners.index.delete"), admin_banner_path(banner), method: :delete, - class: 'button hollow alert expanded' %> + class: "button hollow alert expanded" %>
    <% if manager.persisted? %> - <%= link_to t('admin.managers.manager.delete'), + <%= link_to t("admin.managers.manager.delete"), admin_manager_path(manager), method: :delete, class: "button hollow alert expanded" %> <% else %> - <%= link_to t('admin.managers.manager.add'), + <%= link_to t("admin.managers.manager.add"), { controller: "admin/managers", action: :create, user_id: manager.user_id }, diff --git a/app/views/admin/managers/search.html.erb b/app/views/admin/managers/search.html.erb index cad2c7100..a986f6134 100644 --- a/app/views/admin/managers/search.html.erb +++ b/app/views/admin/managers/search.html.erb @@ -1,6 +1,6 @@

    <%= t("admin.managers.search.title") %>

    -<%= render 'admin/shared/user_search', url: search_admin_managers_path %> +<%= render "admin/shared/user_search", url: search_admin_managers_path %>
    <% if @users.any? %> @@ -19,12 +19,12 @@
    <%= user.email %> <% if user.manager? && user.manager.persisted? %> - <%= link_to t('admin.managers.manager.delete'), + <%= link_to t("admin.managers.manager.delete"), admin_manager_path(user), method: :delete, class: "button hollow alert expanded" %> <% else %> - <%= link_to t('admin.managers.manager.add'), + <%= link_to t("admin.managers.manager.add"), { controller: "admin/managers", action: :create, user_id: user }, diff --git a/app/views/admin/milestone_statuses/_form.html.erb b/app/views/admin/milestone_statuses/_form.html.erb index aff4b20d6..ffc0d7338 100644 --- a/app/views/admin/milestone_statuses/_form.html.erb +++ b/app/views/admin/milestone_statuses/_form.html.erb @@ -1,5 +1,5 @@ <%= form_for [:admin, @status] do |f| %> - <%= render 'shared/errors', resource: @status %> + <%= render "shared/errors", resource: @status %> <%= f.text_field :name %> <%= f.text_area :description %> diff --git a/app/views/admin/milestone_statuses/edit.html.erb b/app/views/admin/milestone_statuses/edit.html.erb index 78df3f184..49c88a595 100644 --- a/app/views/admin/milestone_statuses/edit.html.erb +++ b/app/views/admin/milestone_statuses/edit.html.erb @@ -2,4 +2,4 @@

    <%= t("admin.statuses.edit.title") %>

    -<%= render '/admin/milestone_statuses/form' %> +<%= render "/admin/milestone_statuses/form" %> diff --git a/app/views/admin/milestone_statuses/new.html.erb b/app/views/admin/milestone_statuses/new.html.erb index 6ab1f841c..c380a24d4 100644 --- a/app/views/admin/milestone_statuses/new.html.erb +++ b/app/views/admin/milestone_statuses/new.html.erb @@ -2,4 +2,4 @@

    <%= t("admin.statuses.new.title") %>

    -<%= render '/admin/milestone_statuses/form' %> +<%= render "/admin/milestone_statuses/form" %> diff --git a/app/views/admin/milestones/_form.html.erb b/app/views/admin/milestones/_form.html.erb index 5006b8fa1..0f0b1b040 100644 --- a/app/views/admin/milestones/_form.html.erb +++ b/app/views/admin/milestones/_form.html.erb @@ -5,9 +5,9 @@
    <%= f.select :status_id, @statuses.collect { |s| [s.name, s.id] }, - { include_blank: @statuses.any? ? '' : t('admin.milestones.form.no_statuses_defined') }, + { include_blank: @statuses.any? ? "" : t("admin.milestones.form.no_statuses_defined") }, { disabled: @statuses.blank? } %> - <%= link_to t('admin.milestones.form.admin_statuses'), + <%= link_to t("admin.milestones.form.admin_statuses"), admin_milestone_statuses_path %>
    @@ -26,10 +26,10 @@ label: false, class: "js-calendar-full" %> - <%= render 'images/admin_image', imageable: @milestone, f: f %> + <%= render "images/admin_image", imageable: @milestone, f: f %>
    - <%= render 'documents/nested_documents', documentable: @milestone, f: f %> + <%= render "documents/nested_documents", documentable: @milestone, f: f %>
    <%= f.submit nil, class: "button success" %> diff --git a/app/views/admin/milestones/_milestones.html.erb b/app/views/admin/milestones/_milestones.html.erb index 1b5a4933b..25163ceb4 100644 --- a/app/views/admin/milestones/_milestones.html.erb +++ b/app/views/admin/milestones/_milestones.html.erb @@ -32,7 +32,7 @@ <%= l(milestone.publication_date.to_date) if milestone.publication_date.present? %>
    - <%= milestone.status.present? ? milestone.status.name : '' %> + <%= milestone.status.present? ? milestone.status.name : "" %> <%= link_to t("admin.milestones.index.show_image"), diff --git a/app/views/admin/moderators/index.html.erb b/app/views/admin/moderators/index.html.erb index f417e96e5..be8eff1ad 100644 --- a/app/views/admin/moderators/index.html.erb +++ b/app/views/admin/moderators/index.html.erb @@ -1,8 +1,8 @@ -<%= link_to t('admin.menu.activity'), admin_activity_path, class: "button float-right" %> +<%= link_to t("admin.menu.activity"), admin_activity_path, class: "button float-right" %>

    <%= t("admin.moderators.index.title") %>

    -<%= render 'admin/shared/user_search', url: search_admin_moderators_path %> +<%= render "admin/shared/user_search", url: search_admin_moderators_path %>
    <% if @moderators.any? %> @@ -25,13 +25,13 @@
    <% if moderator.persisted? %> - <%= link_to t('admin.moderators.moderator.delete'), + <%= link_to t("admin.moderators.moderator.delete"), admin_moderator_path(moderator), method: :delete, class: "button hollow alert expanded" %> <% else %> - <%= link_to t('admin.moderators.moderator.add'), + <%= link_to t("admin.moderators.moderator.add"), { controller: "admin/moderators", action: :create, user_id: moderator.user_id }, method: :post, diff --git a/app/views/admin/moderators/search.html.erb b/app/views/admin/moderators/search.html.erb index 7fc479b8a..9f4a8d6a9 100644 --- a/app/views/admin/moderators/search.html.erb +++ b/app/views/admin/moderators/search.html.erb @@ -1,6 +1,6 @@

    <%= t("admin.moderators.search.title") %>

    -<%= render 'admin/shared/user_search', url: search_admin_moderators_path %> +<%= render "admin/shared/user_search", url: search_admin_moderators_path %>
    <% if @users.any? %> @@ -19,12 +19,12 @@
    <%= user.email %> <% if user.moderator? && user.moderator.persisted? %> - <%= link_to t('admin.moderators.moderator.delete'), + <%= link_to t("admin.moderators.moderator.delete"), admin_moderator_path(user), method: :delete, class: "button hollow alert expanded" %> <% else %> - <%= link_to t('admin.moderators.moderator.add'), + <%= link_to t("admin.moderators.moderator.add"), { controller: "admin/moderators", action: :create, user_id: user }, diff --git a/app/views/admin/newsletters/_form.html.erb b/app/views/admin/newsletters/_form.html.erb index 994635718..37a153fab 100644 --- a/app/views/admin/newsletters/_form.html.erb +++ b/app/views/admin/newsletters/_form.html.erb @@ -1,5 +1,5 @@ <%= form_for [:admin, @newsletter] do |f| %> - <%= render 'shared/errors', resource: @newsletter %> + <%= render "shared/errors", resource: @newsletter %> <%= f.select :segment_recipient, options_for_select(user_segments_options, @newsletter[:segment_recipient]) %> diff --git a/app/views/admin/officials/edit.html.erb b/app/views/admin/officials/edit.html.erb index 5a17d2445..40e428e49 100644 --- a/app/views/admin/officials/edit.html.erb +++ b/app/views/admin/officials/edit.html.erb @@ -16,7 +16,7 @@ <%= f.submit class: "button" %> <% if @user.official? %>
    - <%= link_to t("admin.officials.edit.destroy"), admin_official_path(@user), method: :delete, class: 'delete' %> + <%= link_to t("admin.officials.edit.destroy"), admin_official_path(@user), method: :delete, class: "delete" %> <% end %> <% end %> diff --git a/app/views/admin/officials/index.html.erb b/app/views/admin/officials/index.html.erb index b9ff920c3..67921d3ab 100644 --- a/app/views/admin/officials/index.html.erb +++ b/app/views/admin/officials/index.html.erb @@ -1,7 +1,7 @@

    <%= t("admin.officials.index.title") %>

    <%= t("admin.officials.index.help") %>

    -<%= render 'admin/shared/user_search', url: search_admin_officials_path %> +<%= render "admin/shared/user_search", url: search_admin_officials_path %> <% if @officials.any? %>

    <%= page_entries_info @officials %>

    diff --git a/app/views/admin/officials/search.html.erb b/app/views/admin/officials/search.html.erb index e2a067c9d..324c3f7fd 100644 --- a/app/views/admin/officials/search.html.erb +++ b/app/views/admin/officials/search.html.erb @@ -1,6 +1,6 @@

    <%= t("admin.officials.search.title") %>

    -<%= render 'admin/shared/user_search', url: search_admin_officials_path %> +<%= render "admin/shared/user_search", url: search_admin_officials_path %> <% if @users.any? %> @@ -50,4 +50,4 @@
    <%= t("admin.officials.search.no_results") %>
    -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/admin/organizations/index.html.erb b/app/views/admin/organizations/index.html.erb index f69b1448e..c42f3fcd6 100644 --- a/app/views/admin/organizations/index.html.erb +++ b/app/views/admin/organizations/index.html.erb @@ -12,7 +12,7 @@ <% end %> -<%= render 'shared/filter_subnav', i18n_namespace: "admin.organizations.index" %> +<%= render "shared/filter_subnav", i18n_namespace: "admin.organizations.index" %> <% if @organizations.any? %>

    <%= page_entries_info @organizations %>

    diff --git a/app/views/admin/proposal_notifications/index.html.erb b/app/views/admin/proposal_notifications/index.html.erb index a67dbb44f..b8f34f749 100644 --- a/app/views/admin/proposal_notifications/index.html.erb +++ b/app/views/admin/proposal_notifications/index.html.erb @@ -1,7 +1,7 @@

    <%= t("admin.proposal_notifications.index.title") %>

    <%= t("admin.shared.moderated_content") %>

    -<%= render 'shared/filter_subnav', i18n_namespace: "admin.proposal_notifications.index" %> +<%= render "shared/filter_subnav", i18n_namespace: "admin.proposal_notifications.index" %> <% if @proposal_notifications.any? %>

    <%= page_entries_info @proposal_notifications %>

    diff --git a/app/views/admin/settings/_configuration.html.erb b/app/views/admin/settings/_configuration.html.erb index 2bca8b9ea..18a2a1cb4 100644 --- a/app/views/admin/settings/_configuration.html.erb +++ b/app/views/admin/settings/_configuration.html.erb @@ -23,7 +23,7 @@ <%= f.text_area :value, label: false, id: dom_id(setting), lines: 1 %>
    - <%= f.submit(t('admin.settings.index.update_setting'), class: "button hollow expanded") %> + <%= f.submit(t("admin.settings.index.update_setting"), class: "button hollow expanded") %>
    <% end %>
    diff --git a/app/views/admin/spending_proposals/show.html.erb b/app/views/admin/spending_proposals/show.html.erb index 64313e030..ddb47e359 100644 --- a/app/views/admin/spending_proposals/show.html.erb +++ b/app/views/admin/spending_proposals/show.html.erb @@ -2,7 +2,7 @@ <%= t("admin.spending_proposals.show.back") %> <% end %> -<%= render 'written_by_author' %> +<%= render "written_by_author" %> <%= link_to t("admin.spending_proposals.show.edit"), edit_admin_spending_proposal_path(@spending_proposal, @@ -19,13 +19,13 @@

    <%= t("admin.spending_proposals.show.tags") %>: - <%= @spending_proposal.tags.pluck(:name).join(', ') %> + <%= @spending_proposal.tags.pluck(:name).join(", ") %>

    <%= t("admin.spending_proposals.show.assigned_valuators") %>: <% if @spending_proposal.valuators.any? %> - <%= @spending_proposal.valuators.collect(&:name_and_email).join(', ') %> + <%= @spending_proposal.valuators.collect(&:name_and_email).join(", ") %> <% else %> <%= t("admin.spending_proposals.show.undefined") %> <% end %> @@ -34,14 +34,14 @@

    <%= link_to t("admin.spending_proposals.show.edit_classification"), edit_admin_spending_proposal_path(@spending_proposal, - {anchor: 'classification'}.merge(SpendingProposal.filter_params(params))) %> + {anchor: "classification"}.merge(SpendingProposal.filter_params(params))) %>


    <%= t("admin.spending_proposals.show.dossier") %>

    -<%= render 'valuation/spending_proposals/written_by_valuators' %> +<%= render "valuation/spending_proposals/written_by_valuators" %>

    <%= link_to t("admin.spending_proposals.show.edit_dossier"), edit_valuation_spending_proposal_path(@spending_proposal) %> diff --git a/app/views/admin/spending_proposals/summary.html.erb b/app/views/admin/spending_proposals/summary.html.erb index 39fd2c014..3bd1da060 100644 --- a/app/views/admin/spending_proposals/summary.html.erb +++ b/app/views/admin/spending_proposals/summary.html.erb @@ -5,14 +5,14 @@

    <%= t("admin.spending_proposals.summary.title") %>

    - <%= render 'summary_table', + <%= render "summary_table", spending_proposals: @spending_proposals, - second_scope: 'all' %> + second_scope: "all" %>

    <%= t("admin.spending_proposals.summary.title_proposals_with_supports") %>

    - <%= render 'summary_table', + <%= render "summary_table", spending_proposals: @spending_proposals_with_supports, - second_scope: 'with_supports' %> -
    \ No newline at end of file + second_scope: "with_supports" %> + diff --git a/app/views/admin/stats/show.html.erb b/app/views/admin/stats/show.html.erb index 330a69b01..86855a15b 100644 --- a/app/views/admin/stats/show.html.erb +++ b/app/views/admin/stats/show.html.erb @@ -1,5 +1,5 @@ <% content_for :head do %> - <%= javascript_include_tag "stat_graphs", 'data-turbolinks-track' => true %> + <%= javascript_include_tag "stat_graphs", "data-turbolinks-track" => true %> <% end %>
    diff --git a/app/views/admin/system_emails/index.html.erb b/app/views/admin/system_emails/index.html.erb index be20a5502..3e8cabc3b 100644 --- a/app/views/admin/system_emails/index.html.erb +++ b/app/views/admin/system_emails/index.html.erb @@ -18,7 +18,7 @@ <%= t("admin.system_emails.#{system_email_title}.description") %>
    - <% if system_email_actions.include?('view') %> + <% if system_email_actions.include?("view") %>
    <%= link_to t("admin.shared.view"), admin_system_email_view_path(system_email_title), class: "button hollow expanded" %> diff --git a/app/views/admin/system_emails/preview_pending/_proposal_notification_digest.html.erb b/app/views/admin/system_emails/preview_pending/_proposal_notification_digest.html.erb index 273dee0c5..f986919c9 100644 --- a/app/views/admin/system_emails/preview_pending/_proposal_notification_digest.html.erb +++ b/app/views/admin/system_emails/preview_pending/_proposal_notification_digest.html.erb @@ -12,7 +12,7 @@
    <%= t("admin.shared.author") %>
    - <%= preview.proposal.author&.username || '-' %> + <%= preview.proposal.author&.username || "-" %>
    <%= t("admin.shared.created_at") %>
    @@ -31,7 +31,7 @@
    <%= link_to t("admin.system_emails.preview_pending.moderate_pending"), - admin_system_email_moderate_pending_path(system_email_id: 'proposal_notification_digest', + admin_system_email_moderate_pending_path(system_email_id: "proposal_notification_digest", id: preview.id), method: :put, class: "button hollow float-right" %> diff --git a/app/views/admin/system_emails/view.html.erb b/app/views/admin/system_emails/view.html.erb index 685a89a4e..7506d3b27 100644 --- a/app/views/admin/system_emails/view.html.erb +++ b/app/views/admin/system_emails/view.html.erb @@ -7,7 +7,7 @@
    <%= t("admin.newsletters.show.from") %>
    - <%= Setting['mailer_from_address'] %> + <%= Setting["mailer_from_address"] %>
    <%= t("admin.newsletters.show.subject") %>
    diff --git a/app/views/admin/users/index.html.erb b/app/views/admin/users/index.html.erb index ceee64394..e5c68c36e 100644 --- a/app/views/admin/users/index.html.erb +++ b/app/views/admin/users/index.html.erb @@ -3,9 +3,9 @@
    <%= form_tag admin_users_path, method: :get, remote: true do %>
    - <%= text_field_tag :search, '', placeholder: t('admin.users.search.placeholder') %> + <%= text_field_tag :search, "", placeholder: t("admin.users.search.placeholder") %>
    - <%= submit_tag t('admin.users.search.search'), class: 'button' %> + <%= submit_tag t("admin.users.search.search"), class: "button" %>
    <% end %> diff --git a/app/views/admin/valuator_groups/index.html.erb b/app/views/admin/valuator_groups/index.html.erb index eada85e25..15a1ab2dd 100644 --- a/app/views/admin/valuator_groups/index.html.erb +++ b/app/views/admin/valuator_groups/index.html.erb @@ -12,7 +12,7 @@
    <%= t("admin.shared.actions") %>
    diff --git a/app/views/admin/valuator_groups/show.html.erb b/app/views/admin/valuator_groups/show.html.erb index f75490c1b..53c9afcb0 100644 --- a/app/views/admin/valuator_groups/show.html.erb +++ b/app/views/admin/valuator_groups/show.html.erb @@ -4,7 +4,7 @@
      <% if @group.valuators.any? %> - <%= render partial: 'valuator', collection: @group.valuators %> + <%= render partial: "valuator", collection: @group.valuators %> <% else %>
      <%= t("admin.valuator_groups.show.no_valuators") %> diff --git a/app/views/admin/valuators/search.html.erb b/app/views/admin/valuators/search.html.erb index 93907ceb9..5f791576c 100644 --- a/app/views/admin/valuators/search.html.erb +++ b/app/views/admin/valuators/search.html.erb @@ -1,6 +1,6 @@

      <%= t("admin.valuators.search.title") %>

      -<%= render 'admin/shared/user_search', url: search_admin_valuators_path %> +<%= render "admin/shared/user_search", url: search_admin_valuators_path %>
      <% if @users.any? %> diff --git a/app/views/admin/verifications/_pending_step.html.erb b/app/views/admin/verifications/_pending_step.html.erb index 2f54067a3..c33ec71de 100644 --- a/app/views/admin/verifications/_pending_step.html.erb +++ b/app/views/admin/verifications/_pending_step.html.erb @@ -1,7 +1,7 @@ <% if user.failed_residence_verification? %> - <%= render partial: 'failed_census_call', collection: user.failed_census_calls %> + <%= render partial: "failed_census_call", collection: user.failed_census_calls %> <% elsif user.no_phone_available? %>

      <%= t("admin.verifications.index.phone_not_given") %>

      <% elsif user.sms_code_not_confirmed? %>

      <%= t("admin.verifications.index.sms_code_not_confirmed") %>

      -<% end %> \ No newline at end of file +<% end %> diff --git a/app/views/admin/verifications/index.html.erb b/app/views/admin/verifications/index.html.erb index c8b2c6ade..2d9a0f737 100644 --- a/app/views/admin/verifications/index.html.erb +++ b/app/views/admin/verifications/index.html.erb @@ -1,6 +1,6 @@

      <%= t("admin.verifications.index.title") %>

      -<%= render 'admin/shared/user_search', url: search_admin_verifications_path %> +<%= render "admin/shared/user_search", url: search_admin_verifications_path %>

      <%= page_entries_info @users %>

      diff --git a/app/views/admin/widget/cards/_form.html.erb b/app/views/admin/widget/cards/_form.html.erb index c85331025..3d4e99f6d 100644 --- a/app/views/admin/widget/cards/_form.html.erb +++ b/app/views/admin/widget/cards/_form.html.erb @@ -33,7 +33,7 @@
      - <%= render 'images/nested_image', imageable: @card, f: f %> + <%= render "images/nested_image", imageable: @card, f: f %>
      From c87267d34f0646aad552d3bbb4646fb22d97384c Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Thu, 14 Mar 2019 17:11:32 +0100 Subject: [PATCH 06/14] Use double quotes in app/views/budgets --- app/views/budgets/ballot/_ballot.html.erb | 2 +- app/views/budgets/ballot/_investment.html.erb | 2 +- .../ballot/_investment_for_sidebar.html.erb | 4 +-- app/views/budgets/ballot/lines/create.js.erb | 2 +- app/views/budgets/ballot/lines/destroy.js.erb | 2 +- .../budgets/executions/_investments.html.erb | 4 +-- app/views/budgets/executions/show.html.erb | 12 ++++---- app/views/budgets/index.html.erb | 2 +- .../budgets/investments/_ballot.html.erb | 4 +-- .../budgets/investments/_categories.html.erb | 2 +- .../investments/_flag_actions.html.erb | 4 +-- app/views/budgets/investments/_form.html.erb | 12 ++++---- .../budgets/investments/_header.html.erb | 2 +- .../budgets/investments/_investment.html.erb | 18 +++++------ .../investments/_investment_minimal.html.erb | 2 +- .../investments/_investment_show.html.erb | 30 +++++++++---------- .../budgets/investments/_sidebar.html.erb | 10 +++---- app/views/budgets/investments/_votes.html.erb | 8 ++--- app/views/budgets/investments/index.html.erb | 10 +++---- app/views/budgets/investments/new.html.erb | 2 +- app/views/budgets/investments/show.html.erb | 4 +-- app/views/budgets/investments/vote.js.erb | 2 +- app/views/budgets/results/show.html.erb | 20 ++++++------- app/views/budgets/show.html.erb | 4 +-- 24 files changed, 82 insertions(+), 82 deletions(-) diff --git a/app/views/budgets/ballot/_ballot.html.erb b/app/views/budgets/ballot/_ballot.html.erb index 57082c4d9..5dd8bed23 100644 --- a/app/views/budgets/ballot/_ballot.html.erb +++ b/app/views/budgets/ballot/_ballot.html.erb @@ -45,7 +45,7 @@ <% end %>
        - <%= render partial: 'budgets/ballot/investment', + <%= render partial: "budgets/ballot/investment", collection: @ballot.investments.by_group(group.id) %>
      diff --git a/app/views/budgets/ballot/_investment.html.erb b/app/views/budgets/ballot/_investment.html.erb index 7f2bafcb8..42fc8b44f 100644 --- a/app/views/budgets/ballot/_investment.html.erb +++ b/app/views/budgets/ballot/_investment.html.erb @@ -4,7 +4,7 @@ <% if @budget.balloting? %> <%= link_to budget_ballot_line_path(@budget, id: investment.id), - title: t('budgets.ballots.show.remove'), + title: t("budgets.ballots.show.remove"), class: "remove-investment-project", method: :delete, remote: true do %> diff --git a/app/views/budgets/ballot/_investment_for_sidebar.html.erb b/app/views/budgets/ballot/_investment_for_sidebar.html.erb index b7b1d1242..82db87e87 100644 --- a/app/views/budgets/ballot/_investment_for_sidebar.html.erb +++ b/app/views/budgets/ballot/_investment_for_sidebar.html.erb @@ -5,11 +5,11 @@ <% if @budget.balloting? %> <%= link_to budget_ballot_line_url(id: investment.id, investments_ids: investment_ids), - title: t('budgets.ballots.show.remove'), + title: t("budgets.ballots.show.remove"), class: "remove-investment-project", method: :delete, remote: true do %> - <%= t('budgets.ballots.show.remove') %> + <%= t("budgets.ballots.show.remove") %> <% end %> <% end %> diff --git a/app/views/budgets/ballot/lines/create.js.erb b/app/views/budgets/ballot/lines/create.js.erb index 6edf8a0f2..1528062f7 100644 --- a/app/views/budgets/ballot/lines/create.js.erb +++ b/app/views/budgets/ballot/lines/create.js.erb @@ -5,7 +5,7 @@ $("#<%= dom_id(@investment) %>_ballot").html('<%= j render("/budgets/investments investment_ids: @investment_ids, ballot: @ballot) %>'); -<%= render 'refresh_ballots', +<%= render "refresh_ballots", investment: @investment, investment_ids: @investment_ids, ballot: @ballot %> diff --git a/app/views/budgets/ballot/lines/destroy.js.erb b/app/views/budgets/ballot/lines/destroy.js.erb index 94120d3a9..e2a91ed6f 100644 --- a/app/views/budgets/ballot/lines/destroy.js.erb +++ b/app/views/budgets/ballot/lines/destroy.js.erb @@ -6,7 +6,7 @@ $("#<%= dom_id(@investment) %>_ballot").html('<%= j render("/budgets/investments investment: @investment, investment_ids: @investment_ids, ballot: @ballot) %>'); -<%= render 'refresh_ballots', +<%= render "refresh_ballots", investment: @investment, investment_ids: @investment_ids, ballot: @ballot %> diff --git a/app/views/budgets/executions/_investments.html.erb b/app/views/budgets/executions/_investments.html.erb index e9ddd48fb..cc416c6ba 100644 --- a/app/views/budgets/executions/_investments.html.erb +++ b/app/views/budgets/executions/_investments.html.erb @@ -6,8 +6,8 @@ <% investments.each do |investment| %>
      - <%= link_to budget_investment_path(@budget, investment, anchor: "tab-milestones"), data: { 'equalizer-watch': true } do %> - <%= render 'image', investment: investment %> + <%= link_to budget_investment_path(@budget, investment, anchor: "tab-milestones"), data: { "equalizer-watch": true } do %> + <%= render "image", investment: investment %>
      <%= 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 @@