<% if @administrators.any? %>
@@ -26,13 +26,13 @@
<% 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" %>
|
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" %>
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/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" %>
@@ -24,10 +24,10 @@
<%= link_to t("admin.legislation.draft_versions.index.delete"),
admin_legislation_process_draft_version_path(@process, @draft_version),
method: :delete,
- class: 'button hollow alert' %>
+ class: "button hollow alert" %>
- <%= 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) %>
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 @@
<% 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/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 %>
| | |