<%= translations_form.text_field :title,
- data: { js_banner_title: "js_banner_title" } %>
+ data: { js_banner_title: "js_banner_title" } %>
<%= translations_form.text_field :description,
- data: { js_banner_description: "js_banner_description" } %>
+ data: { js_banner_description: "js_banner_description" } %>
<% end %>
diff --git a/app/views/admin/banners/index.html.erb b/app/views/admin/banners/index.html.erb
index a81d0671d..046e7123d 100644
--- a/app/views/admin/banners/index.html.erb
+++ b/app/views/admin/banners/index.html.erb
@@ -1,5 +1,6 @@
<%= link_to t("admin.banners.index.create"),
- new_admin_banner_path, class: "button float-right" %>
+ new_admin_banner_path,
+ class: "button float-right" %>
<%= sanitize(t("#{i18n_namespace}.filters.two_filters",
- filter: t("#{i18n_namespace}.filters.#{params[:filter]}"),
- advanced_filters: budget_investments_advanced_filters(params[:advanced_filters]))) %>
+ filter: t("#{i18n_namespace}.filters.#{params[:filter]}"),
+ advanced_filters: budget_investments_advanced_filters(params[:advanced_filters]))) %>
<% elsif params[:filter].present? %>
<%= sanitize(t("#{i18n_namespace}.filters.one_filter",
- filter: t("#{i18n_namespace}.filters.#{params[:filter]}"))) %>
+ filter: t("#{i18n_namespace}.filters.#{params[:filter]}"))) %>
<% elsif params[:advanced_filters].present? %>
<%= sanitize(t("#{i18n_namespace}.filters.one_filter",
- filter: budget_investments_advanced_filters(params[:advanced_filters]))) %>
+ filter: budget_investments_advanced_filters(params[:advanced_filters]))) %>
<% end %>
diff --git a/app/views/admin/budget_investments/_investments.html.erb b/app/views/admin/budget_investments/_investments.html.erb
index e5a79becb..f378fd63a 100644
--- a/app/views/admin/budget_investments/_investments.html.erb
+++ b/app/views/admin/budget_investments/_investments.html.erb
@@ -9,7 +9,8 @@
<% if @investments.any? %>
<%= translations_form.text_field :title,
- maxlength: Budget::Investment.title_max_length %>
+ maxlength: Budget::Investment.title_max_length %>
<%= translations_form.text_area :description,
- maxlength: Budget::Investment.description_max_length,
- class: "html-area" %>
+ maxlength: Budget::Investment.description_max_length,
+ class: "html-area" %>
<% end %>
@@ -52,8 +52,8 @@
<%= f.select(:administrator_id,
- @admins.map { |a| [a.description_or_name_and_email, a.id] },
- { include_blank: t("admin.budget_investments.edit.undefined") }) %>
+ @admins.map { |a| [a.description_or_name_and_email, a.id] },
+ { include_blank: t("admin.budget_investments.edit.undefined") }) %>
@@ -65,10 +65,10 @@
<% end %>
<%= f.text_field :valuation_tag_list,
- value: @investment.valuation_tag_list.sort.join(","),
- label: false,
- placeholder: t("admin.budget_investments.edit.tags_placeholder"),
- class: "js-tag-list" %>
+ value: @investment.valuation_tag_list.sort.join(","),
+ label: false,
+ placeholder: t("admin.budget_investments.edit.tags_placeholder"),
+ class: "js-tag-list" %>
<%= f.text_field :milestone_tag_list,
- value: @investment.milestone_tag_list.sort.join(", ") %>
+ value: @investment.milestone_tag_list.sort.join(", ") %>
diff --git a/app/views/admin/dashboard/actions/_form.html.erb b/app/views/admin/dashboard/actions/_form.html.erb
index 151af1c54..d98bd9501 100644
--- a/app/views/admin/dashboard/actions/_form.html.erb
+++ b/app/views/admin/dashboard/actions/_form.html.erb
@@ -5,8 +5,9 @@
<%= f.label :action_type %>
<% ::Dashboard::Action.action_types.keys.each do |action_type_value| %>
- <%= f.radio_button :action_type, action_type_value,
- data: { toggle: "request_to_administrators short_description" } %>
+ <%= f.radio_button :action_type,
+ action_type_value,
+ data: { toggle: "request_to_administrators short_description" } %>
<% end %>
diff --git a/app/views/admin/dashboard/actions/index.html.erb b/app/views/admin/dashboard/actions/index.html.erb
index 38b4cba02..544bd5545 100644
--- a/app/views/admin/dashboard/actions/index.html.erb
+++ b/app/views/admin/dashboard/actions/index.html.erb
@@ -1,5 +1,6 @@
<%= link_to t("admin.dashboard.actions.index.create"),
- new_admin_dashboard_action_path, class: "button success float-right" %>
+ new_admin_dashboard_action_path,
+ class: "button success float-right" %>
diff --git a/app/views/admin/newsletters/new.html.erb b/app/views/admin/newsletters/new.html.erb
index b600bdd89..2c05aed24 100644
--- a/app/views/admin/newsletters/new.html.erb
+++ b/app/views/admin/newsletters/new.html.erb
@@ -3,8 +3,8 @@
<%= t("admin.newsletters.new.title") %>
<%= sanitize(t("admin.newsletters.new.header_footer_help_text",
- link: link_to(t("admin.newsletters.new.image_link"),
- admin_site_customization_images_path))) %>
+ link: link_to(t("admin.newsletters.new.image_link"),
+ admin_site_customization_images_path))) %>
<%= render "form" %>
diff --git a/app/views/admin/poll/booth_assignments/_booth_assignment.html.erb b/app/views/admin/poll/booth_assignments/_booth_assignment.html.erb
index 3da870b1f..83a68746f 100644
--- a/app/views/admin/poll/booth_assignments/_booth_assignment.html.erb
+++ b/app/views/admin/poll/booth_assignments/_booth_assignment.html.erb
@@ -12,7 +12,8 @@
<% unless @poll.expired? %>
- <%= render Admin::TableActionsComponent.new(booth_assignment,
+ <%= render Admin::TableActionsComponent.new(
+ booth_assignment,
actions: [:destroy],
destroy_text: t("admin.booth_assignments.manage.actions.unassign"),
destroy_confirmation: (booth_assignment.shifts? ? t("admin.poll_booth_assignments.alert.shifts") : ""),
diff --git a/app/views/admin/poll/polls/_poll.html.erb b/app/views/admin/poll/polls/_poll.html.erb
index 80b64d43c..9d692b867 100644
--- a/app/views/admin/poll/polls/_poll.html.erb
+++ b/app/views/admin/poll/polls/_poll.html.erb
@@ -7,7 +7,8 @@
| <%= poll.sdg_target_list %> |
<% end %>
- <%= render Admin::TableActionsComponent.new(poll,
+ <%= render Admin::TableActionsComponent.new(
+ poll,
destroy_confirmation: t("admin.polls.destroy.alert")
) do |actions| %>
<%= actions.action(:configure) %>
diff --git a/app/views/admin/poll/questions/answers/_form.html.erb b/app/views/admin/poll/questions/answers/_form.html.erb
index ef32b93e5..7ecc89c8c 100644
--- a/app/views/admin/poll/questions/answers/_form.html.erb
+++ b/app/views/admin/poll/questions/answers/_form.html.erb
@@ -5,7 +5,7 @@
<%= render "shared/errors", resource: @answer %>
<%= f.hidden_field :given_order,
- value: @answer.persisted? ? @answer.given_order : @answer.class.last_position(@answer.question_id || @question.id) + 1 %>
+ value: @answer.persisted? ? @answer.given_order : @answer.class.last_position(@answer.question_id || @question.id) + 1 %>
<%= f.translatable_fields do |translations_form| %>
diff --git a/app/views/admin/poll/shifts/_form.html.erb b/app/views/admin/poll/shifts/_form.html.erb
index c60458759..2c0fc6249 100644
--- a/app/views/admin/poll/shifts/_form.html.erb
+++ b/app/views/admin/poll/shifts/_form.html.erb
@@ -14,29 +14,29 @@
<%= f.select :task,
- Poll::Shift.tasks.map { |k, v| [t("admin.poll_shifts.#{k}"), k] },
- { prompt: t("admin.poll_shifts.new.select_task") },
- class: "js-poll-shifts" %>
+ Poll::Shift.tasks.map { |k, v| [t("admin.poll_shifts.#{k}"), k] },
+ { prompt: t("admin.poll_shifts.new.select_task") },
+ class: "js-poll-shifts" %>
<%= 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") },
- class: "js-shift-vote-collection-dates" %>
+ 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") },
+ 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") },
- class: "js-shift-recount-scrutiny-dates",
- hidden: "hidden" %>
+ options_for_select(shift_recount_scrutiny_dates(@booth, @recount_polls)),
+ { prompt: t("admin.poll_shifts.new.select_date") },
+ class: "js-shift-recount-scrutiny-dates",
+ hidden: "hidden" %>
<%= f.hidden_field :booth_id, value: @booth.id %>
<%= f.submit t("admin.poll_shifts.new.add_shift"),
- class: "button expanded margin-top" %>
+ class: "button expanded margin-top" %>
<% end %>
diff --git a/app/views/admin/poll/shifts/_search_officers.html.erb b/app/views/admin/poll/shifts/_search_officers.html.erb
index e95090f9c..4a601c852 100644
--- a/app/views/admin/poll/shifts/_search_officers.html.erb
+++ b/app/views/admin/poll/shifts/_search_officers.html.erb
@@ -3,9 +3,9 @@
method: :get, remote: true do |f| %>
<%= text_field_tag :search,
- @search,
- placeholder: t("admin.poll_shifts.new.search_officer_placeholder"),
- id: "search-officers" %>
+ @search,
+ placeholder: t("admin.poll_shifts.new.search_officer_placeholder"),
+ id: "search-officers" %>
<%= submit_tag t("admin.poll_shifts.new.search_officer_button"),
class: "button" %>
diff --git a/app/views/admin/poll/shifts/_shifts.html.erb b/app/views/admin/poll/shifts/_shifts.html.erb
index d3cda31fb..c8d884b6d 100644
--- a/app/views/admin/poll/shifts/_shifts.html.erb
+++ b/app/views/admin/poll/shifts/_shifts.html.erb
@@ -17,7 +17,8 @@
<%= shift.officer_email %> |
<%= t("admin.poll_shifts.#{shift.task}") %> |
- <%= render Admin::TableActionsComponent.new(shift,
+ <%= render Admin::TableActionsComponent.new(
+ shift,
actions: [:destroy],
destroy_text: t("admin.poll_shifts.new.remove_shift")
) %>
diff --git a/app/views/admin/settings/_content_types_settings_form.html.erb b/app/views/admin/settings/_content_types_settings_form.html.erb
index 4c3cb347b..458f9d8e8 100644
--- a/app/views/admin/settings/_content_types_settings_form.html.erb
+++ b/app/views/admin/settings/_content_types_settings_form.html.erb
@@ -6,8 +6,8 @@
<% Setting.mime_types[group].each do |content_type, mime_type_value| %>
<%= check_box_tag content_type,
- setting.value.split.include?(mime_type_value),
- setting.value.split.include?(mime_type_value) %>
+ setting.value.split.include?(mime_type_value),
+ setting.value.split.include?(mime_type_value) %>
<%= label_tag content_type, content_type.upcase %>
<% end %>
diff --git a/app/views/admin/settings/_map_form.html.erb b/app/views/admin/settings/_map_form.html.erb
index 8c85666f7..c71b412a0 100644
--- a/app/views/admin/settings/_map_form.html.erb
+++ b/app/views/admin/settings/_map_form.html.erb
@@ -23,7 +23,7 @@
<%= submit_tag t("admin.settings.index.map.form.submit"),
- class: "button hollow expanded" %>
+ class: "button hollow expanded" %>
<% end %>
diff --git a/app/views/admin/settings/_settings_form.html.erb b/app/views/admin/settings/_settings_form.html.erb
index 33e9ab8f1..464713004 100644
--- a/app/views/admin/settings/_settings_form.html.erb
+++ b/app/views/admin/settings/_settings_form.html.erb
@@ -2,10 +2,10 @@
<%= f.hidden_field :tab, id: dom_id(setting, :tab), value: tab if defined?(tab) %>
<%= f.text_area :value,
- label: false,
- id: dom_id(setting, :value),
- "aria-label": strip_tags(t("settings.#{setting.key}")),
- "aria-describedby": dom_id(setting, :description) %>
+ label: false,
+ id: dom_id(setting, :value),
+ "aria-label": strip_tags(t("settings.#{setting.key}")),
+ "aria-describedby": dom_id(setting, :description) %>
<%= f.submit(t("admin.settings.index.update_setting"), class: "button hollow expanded") %>
diff --git a/app/views/admin/shared/_budget_investment_search.html.erb b/app/views/admin/shared/_budget_investment_search.html.erb
index 86f77dfc5..7e9d3d082 100644
--- a/app/views/admin/shared/_budget_investment_search.html.erb
+++ b/app/views/admin/shared/_budget_investment_search.html.erb
@@ -5,9 +5,9 @@
<%= select_tag :heading_id,
- options_for_select(budget_heading_select_options(@budget),
- params[:heading_id]),
- include_blank: true %>
+ options_for_select(budget_heading_select_options(@budget),
+ params[:heading_id]),
+ include_blank: true %>
diff --git a/app/views/admin/signature_sheets/new.html.erb b/app/views/admin/signature_sheets/new.html.erb
index 5dd736d17..70ab8ab49 100644
--- a/app/views/admin/signature_sheets/new.html.erb
+++ b/app/views/admin/signature_sheets/new.html.erb
@@ -4,7 +4,7 @@
<%= form_for [:admin, @signature_sheet] do |f| %>
<%= render "shared/errors",
- resource: @signature_sheet %>
+ resource: @signature_sheet %>
<%= f.text_field :title %>
diff --git a/app/views/admin/signature_sheets/show.html.erb b/app/views/admin/signature_sheets/show.html.erb
index 1b235ae2c..b4446c77e 100644
--- a/app/views/admin/signature_sheets/show.html.erb
+++ b/app/views/admin/signature_sheets/show.html.erb
@@ -21,12 +21,12 @@
<%= t("admin.signature_sheets.show.verified",
- count: @signature_sheet.signatures.verified.count) %>
+ count: @signature_sheet.signatures.verified.count) %>
<%= t("admin.signature_sheets.show.voted",
- count: @voted_signatures) %>
+ count: @voted_signatures) %>
@@ -35,7 +35,7 @@
<%= t("admin.signature_sheets.show.unverified",
- count: @signature_sheet.signatures.unverified.count) %>
+ count: @signature_sheet.signatures.unverified.count) %>
<%= t("admin.signature_sheets.show.unverified_error") %>
diff --git a/app/views/admin/site_customization/information_texts/_globalize_locales.html.erb b/app/views/admin/site_customization/information_texts/_globalize_locales.html.erb
index ef93a7ae7..da4297ad1 100644
--- a/app/views/admin/site_customization/information_texts/_globalize_locales.html.erb
+++ b/app/views/admin/site_customization/information_texts/_globalize_locales.html.erb
@@ -1,4 +1,4 @@
<%= render "shared/common_globalize_locales",
- resource: nil,
- display_style: lambda { |locale| site_customization_display_translation_style(locale) },
- manage_languages: defined?(manage_languages) ? manage_languages : true %>
+ resource: nil,
+ display_style: lambda { |locale| site_customization_display_translation_style(locale) },
+ manage_languages: defined?(manage_languages) ? manage_languages : true %>
diff --git a/app/views/admin/stats/show.html.erb b/app/views/admin/stats/show.html.erb
index 8a633637c..f5fa82d3c 100644
--- a/app/views/admin/stats/show.html.erb
+++ b/app/views/admin/stats/show.html.erb
@@ -13,9 +13,9 @@
<%= link_to t("admin.stats.show.proposal_notifications"),
proposal_notifications_admin_stats_path, class: "button hollow" %>
<%= link_to t("admin.stats.show.incomplete_verifications"),
- admin_verifications_path, class: "button hollow" %>
+ admin_verifications_path, class: "button hollow" %>
<%= link_to t("admin.stats.show.sdg"),
- sdg_admin_stats_path, class: "button hollow" if feature?(:sdg) %>
+ sdg_admin_stats_path, class: "button hollow" if feature?(:sdg) %>
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 2d86e0812..fa02ac0a5 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
@@ -31,10 +31,10 @@
<%= link_to t("admin.system_emails.preview_pending.moderate_pending"),
- admin_system_email_moderate_pending_path(system_email_id: "proposal_notification_digest",
- id: preview.id),
- method: :put,
- class: "button hollow float-right" %>
+ admin_system_email_moderate_pending_path(system_email_id: "proposal_notification_digest",
+ id: preview.id),
+ method: :put,
+ class: "button hollow float-right" %>
<% end %>
diff --git a/app/views/admin/tags/index.html.erb b/app/views/admin/tags/index.html.erb
index 39583f933..8c0262f08 100644
--- a/app/views/admin/tags/index.html.erb
+++ b/app/views/admin/tags/index.html.erb
@@ -22,11 +22,11 @@
|
|
<%= form_for(tag,
- url: admin_tag_path(tag),
- as: :tag,
- html: { id: "edit_tag_#{tag.id}" }) do |f| %>
+ url: admin_tag_path(tag),
+ as: :tag,
+ html: { id: "edit_tag_#{tag.id}" }) do |f| %>
- <%= tag.name %>
+ <%= tag.name %>
<% end %>
|
diff --git a/app/views/budgets/executions/show.html.erb b/app/views/budgets/executions/show.html.erb
index acb4f3822..dcbfe24f6 100644
--- a/app/views/budgets/executions/show.html.erb
+++ b/app/views/budgets/executions/show.html.erb
@@ -2,9 +2,9 @@
<% content_for :meta_description do %><%= @budget.description_for_phase("finished") %><% end %>
<% provide :social_media_meta_tags do %>
<%= render "shared/social_media_meta_tags",
- social_url: budget_executions_url(@budget),
- social_title: @budget.name,
- social_description: @budget.description_for_phase("finished") %>
+ social_url: budget_executions_url(@budget),
+ social_title: @budget.name,
+ social_description: @budget.description_for_phase("finished") %>
<% end %>
<% content_for :canonical do %>
diff --git a/app/views/budgets/investments/_header.html.erb b/app/views/budgets/investments/_header.html.erb
index 5f1ab18b8..cd30b56b1 100644
--- a/app/views/budgets/investments/_header.html.erb
+++ b/app/views/budgets/investments/_header.html.erb
@@ -37,12 +37,12 @@
<%= sanitize(t("budgets.investments.header.different_heading_assigned",
- heading_link: heading_link(@assigned_heading, @budget))) %>
+ heading_link: heading_link(@assigned_heading, @budget))) %>
<%= sanitize(t("budgets.investments.header.change_ballot",
- check_ballot: link_to(t("budgets.investments.header.check_ballot_link"),
- budget_ballot_path(@budget)))) %>
+ check_ballot: link_to(t("budgets.investments.header.check_ballot_link"),
+ budget_ballot_path(@budget)))) %>
diff --git a/app/views/budgets/investments/_investment.html.erb b/app/views/budgets/investments/_investment.html.erb
index 1a4009952..2f67a5a9a 100644
--- a/app/views/budgets/investments/_investment.html.erb
+++ b/app/views/budgets/investments/_investment.html.erb
@@ -42,7 +42,7 @@
<%= t("budgets.investments.investment.supports",
- count: investment.total_votes) %>
+ count: investment.total_votes) %>
@@ -50,9 +50,9 @@
<%= render "/budgets/investments/ballot",
- investment: investment,
- investment_ids: investment_ids,
- ballot: ballot %>
+ investment: investment,
+ investment_ids: investment_ids,
+ ballot: ballot %>
<% elsif investment.should_show_price? %>
<%= render "documents/documents",
- documents: investment.documents,
- max_documents_allowed: Budget::Investment.max_documents_allowed %>
+ documents: investment.documents,
+ max_documents_allowed: Budget::Investment.max_documents_allowed %>
<% end %>
<%= render "shared/tags", taggable: investment %>
diff --git a/app/views/budgets/investments/_investment_show.html.erb b/app/views/budgets/investments/_investment_show.html.erb
index aec6ec3b5..10e1fd18c 100644
--- a/app/views/budgets/investments/_investment_show.html.erb
+++ b/app/views/budgets/investments/_investment_show.html.erb
@@ -1,10 +1,10 @@
<% provide :social_media_meta_tags do %>
<%= render "shared/social_media_meta_tags",
- social_url: budget_investments_path(investment),
- social_title: investment.title,
- social_description: investment.description,
- twitter_image_url: (investment.image.present? ? polymorphic_path(investment.image.variant(:thumb)) : nil),
- og_image_url: (investment.image.present? ? polymorphic_path(investment.image.variant(:thumb)) : nil) %>
+ social_url: budget_investments_path(investment),
+ social_title: investment.title,
+ social_description: investment.description,
+ twitter_image_url: (investment.image.present? ? polymorphic_path(investment.image.variant(:thumb)) : nil),
+ og_image_url: (investment.image.present? ? polymorphic_path(investment.image.variant(:thumb)) : nil) %>
<% end %>
@@ -39,7 +39,7 @@
<%= t("budgets.investments.investment.supports",
- count: investment.total_votes) %>
+ count: investment.total_votes) %>
@@ -49,9 +49,9 @@
<%= render "ballot",
- investment: investment,
- investment_ids: investment_ids,
- ballot: ballot %>
+ investment: investment,
+ investment_ids: investment_ids,
+ ballot: ballot %>
<% end %>
@@ -93,22 +93,23 @@
<% if investment.should_show_price_explanation? %>
<%= link_to t("budgets.investments.show.see_price_explanation"),
- "#price_explanation", class: "small" %>
+ "#price_explanation",
+ class: "small" %>
<% end %>
<% end %>
<%= render "shared/social_share",
- share_title: t("budgets.investments.show.share"),
- title: investment.title,
- image_url: image_absolute_url(investment.image, :thumb),
- url: budget_investment_url(investment.budget, investment),
- description: t("budgets.investments.share.message",
- title: investment.title,
- handle: setting["org_name"]),
- mobile: t("budgets.investments.share.message",
- title: investment.title,
- handle: setting["twitter_handle"]) %>
+ share_title: t("budgets.investments.show.share"),
+ title: investment.title,
+ image_url: image_absolute_url(investment.image, :thumb),
+ url: budget_investment_url(investment.budget, investment),
+ description: t("budgets.investments.share.message",
+ title: investment.title,
+ handle: setting["org_name"]),
+ mobile: t("budgets.investments.share.message",
+ title: investment.title,
+ handle: setting["twitter_handle"]) %>
<% if current_user %>
diff --git a/app/views/budgets/investments/_sidebar.html.erb b/app/views/budgets/investments/_sidebar.html.erb
index 9aba3eeb1..a822c2efd 100644
--- a/app/views/budgets/investments/_sidebar.html.erb
+++ b/app/views/budgets/investments/_sidebar.html.erb
@@ -3,11 +3,12 @@
<% if can?(:create, Budget::Investment.new(budget: @budget)) %>
<% if current_user && current_user.level_two_or_three_verified? %>
<%= link_to t("budgets.investments.index.sidebar.create"),
- new_budget_investment_path(budget_id: @budget.id), class: "button budget expanded" %>
+ new_budget_investment_path(budget_id: @budget.id),
+ class: "button budget expanded" %>
<% else %>
<%= sanitize(t("budgets.investments.index.sidebar.verified_only",
- verify: link_to_verify_account)) %>
+ verify: link_to_verify_account)) %>
<% end %>
<% end %>
diff --git a/app/views/budgets/investments/index.html.erb b/app/views/budgets/investments/index.html.erb
index 99e47d0c9..08a481d6d 100644
--- a/app/views/budgets/investments/index.html.erb
+++ b/app/views/budgets/investments/index.html.erb
@@ -7,9 +7,9 @@
<% content_for :canonical do %>
<% if @heading.present? %>
<%= render "shared/canonical",
- href: budget_investments_url(@budget,
- heading_id: @heading.id,
- filter: @current_filter) %>
+ href: budget_investments_url(@budget,
+ heading_id: @heading.id,
+ filter: @current_filter) %>
<% else %>
<%= render "shared/canonical", href: budget_investments_url(@budget) %>
<% end %>
diff --git a/app/views/budgets/investments/show.html.erb b/app/views/budgets/investments/show.html.erb
index 042e70d46..d3e4cdb8d 100644
--- a/app/views/budgets/investments/show.html.erb
+++ b/app/views/budgets/investments/show.html.erb
@@ -4,9 +4,9 @@
<% end %>
<%= render "/budgets/investments/investment_show",
- investment: @investment,
- investment_ids: @investment_ids,
- ballot: @ballot %>
+ investment: @investment,
+ investment_ids: @investment_ids,
+ ballot: @ballot %>
diff --git a/app/views/budgets/results/show.html.erb b/app/views/budgets/results/show.html.erb
index 605309c1b..aedae4faf 100644
--- a/app/views/budgets/results/show.html.erb
+++ b/app/views/budgets/results/show.html.erb
@@ -2,9 +2,9 @@
<% content_for :meta_description do %><%= @budget.description_for_phase("finished") %><% end %>
<% provide :social_media_meta_tags do %>
<%= render "shared/social_media_meta_tags",
- social_url: budget_results_url(@budget),
- social_title: @budget.name,
- social_description: @budget.description_for_phase("finished") %>
+ social_url: budget_results_url(@budget),
+ social_title: @budget.name,
+ social_description: @budget.description_for_phase("finished") %>
<% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: budget_results_url(@budget) %>
diff --git a/app/views/budgets/stats/show.html.erb b/app/views/budgets/stats/show.html.erb
index 5ad9e09ba..be60f24c4 100644
--- a/app/views/budgets/stats/show.html.erb
+++ b/app/views/budgets/stats/show.html.erb
@@ -3,9 +3,9 @@
<% end %>
<% provide :social_media_meta_tags do %>
<%= render "shared/social_media_meta_tags",
- social_url: budget_stats_url(@budget),
- social_title: @budget.name,
- social_description: @budget.description_for_phase("finished") %>
+ social_url: budget_stats_url(@budget),
+ social_title: @budget.name,
+ social_description: @budget.description_for_phase("finished") %>
<% end %>
diff --git a/app/views/comments/_form.html.erb b/app/views/comments/_form.html.erb
index 41b5e61eb..17813cace 100644
--- a/app/views/comments/_form.html.erb
+++ b/app/views/comments/_form.html.erb
@@ -4,9 +4,9 @@
diff --git a/app/views/dashboard/_goal.html.erb b/app/views/dashboard/_goal.html.erb
index b100e1952..2c51072aa 100644
--- a/app/views/dashboard/_goal.html.erb
+++ b/app/views/dashboard/_goal.html.erb
@@ -2,8 +2,8 @@
<%= t("dashboard.goal.target_supports",
- count: number_with_precision(goal.required_supports,
- delimiter: ".", precision: 0)) %>
+ count: number_with_precision(goal.required_supports,
+ delimiter: ".", precision: 0)) %>
diff --git a/app/views/dashboard/_mailing_resource.html.erb b/app/views/dashboard/_mailing_resource.html.erb
index ed85a5642..2ec0beb40 100644
--- a/app/views/dashboard/_mailing_resource.html.erb
+++ b/app/views/dashboard/_mailing_resource.html.erb
@@ -8,8 +8,8 @@
<%= link_to t("dashboard.resource.view_resource"),
- new_proposal_dashboard_mailing_path(proposal.to_param),
- class: "button expanded" %>
+ new_proposal_dashboard_mailing_path(proposal.to_param),
+ class: "button expanded" %>
diff --git a/app/views/dashboard/_poll_resource.html.erb b/app/views/dashboard/_poll_resource.html.erb
index 5a02a4466..39d21ea8e 100644
--- a/app/views/dashboard/_poll_resource.html.erb
+++ b/app/views/dashboard/_poll_resource.html.erb
@@ -8,8 +8,8 @@
<%= link_to t("dashboard.resource.view_resource"),
- proposal_dashboard_polls_path(proposal.to_param),
- class: "button expanded" %>
+ proposal_dashboard_polls_path(proposal.to_param),
+ class: "button expanded" %>
diff --git a/app/views/dashboard/_poster_resource.html.erb b/app/views/dashboard/_poster_resource.html.erb
index 85f2c27bf..0f47d6c32 100644
--- a/app/views/dashboard/_poster_resource.html.erb
+++ b/app/views/dashboard/_poster_resource.html.erb
@@ -8,8 +8,8 @@
<%= link_to t("dashboard.resource.view_resource"),
- new_proposal_dashboard_poster_path(proposal.to_param),
- class: "button expanded" %>
+ new_proposal_dashboard_poster_path(proposal.to_param),
+ class: "button expanded" %>
diff --git a/app/views/dashboard/community.html.erb b/app/views/dashboard/community.html.erb
index b23137339..cdf57a365 100644
--- a/app/views/dashboard/community.html.erb
+++ b/app/views/dashboard/community.html.erb
@@ -9,7 +9,7 @@
<% if proposal.community.latest_activity.present? %>
<%= t("dashboard.community.latest_activity",
- at: l(proposal.community.latest_activity.to_date)) %>
+ at: l(proposal.community.latest_activity.to_date)) %>
<% end %>
diff --git a/app/views/dashboard/mailer/new_actions_notification_on_published.html.erb b/app/views/dashboard/mailer/new_actions_notification_on_published.html.erb
index 46d39c5ba..287899d12 100644
--- a/app/views/dashboard/mailer/new_actions_notification_on_published.html.erb
+++ b/app/views/dashboard/mailer/new_actions_notification_on_published.html.erb
@@ -3,8 +3,8 @@
<%= t("mailers.new_actions_notification_on_published.hi",
- name: @proposal.author.name,
- title: @proposal.title) %>
+ name: @proposal.author.name,
+ title: @proposal.title) %>
<%= t("mailers.new_actions_notification_on_published.text_1") %>
@@ -49,11 +49,11 @@
|
|
<%= link_to progress_proposal_dashboard_url(@proposal),
- style: "font-family: 'Open Sans',arial,sans-serif; background: #3700fd;
- border-radius: 6px; color: #fff !important; font-weight: bold;
- padding: 17px 20px; text-align: center; text-decoration: none;
- font-size: 20px; min-width: 200px; display: inline-block;",
- target: "_blank" do %>
+ style: "font-family: 'Open Sans',arial,sans-serif; background: #3700fd;" \
+ "border-radius: 6px; color: #fff !important; font-weight: bold;" \
+ "padding: 17px 20px; text-align: center; text-decoration: none;" \
+ "font-size: 20px; min-width: 200px; display: inline-block;",
+ target: "_blank" do %>
<%= t("mailers.new_actions_notification_on_published.dashboard_button") %>
<% end %>
|
diff --git a/app/views/dashboard/polls/_form.html.erb b/app/views/dashboard/polls/_form.html.erb
index 6a74ad95c..d39a8070b 100644
--- a/app/views/dashboard/polls/_form.html.erb
+++ b/app/views/dashboard/polls/_form.html.erb
@@ -8,16 +8,16 @@
<%= f.text_field :starts_at,
- autocomplete: "off",
- value: poll.starts_at.present? ? l(poll.starts_at.to_date) : nil,
- class: "js-calendar-full" %>
+ autocomplete: "off",
+ value: poll.starts_at.present? ? l(poll.starts_at.to_date) : nil,
+ class: "js-calendar-full" %>
<%= f.text_field :ends_at,
- autocomplete: "off",
- value: poll.ends_at.present? ? l(poll.ends_at.to_date) : nil,
- class: "js-calendar-full" %>
+ autocomplete: "off",
+ value: poll.ends_at.present? ? l(poll.ends_at.to_date) : nil,
+ class: "js-calendar-full" %>
diff --git a/app/views/debates/_actions.html.erb b/app/views/debates/_actions.html.erb
index 3605d3fcf..d3e64148b 100644
--- a/app/views/debates/_actions.html.erb
+++ b/app/views/debates/_actions.html.erb
@@ -4,9 +4,15 @@
|
<% if debate.featured? %>
<%= link_to t("admin.actions.unmark_featured").capitalize, unmark_featured_debate_path(debate),
- method: :put, data: { confirm: t("admin.actions.confirm_action", action: t("admin.actions.unmark_featured"), name: debate.title) } %>
+ method: :put,
+ data: { confirm: t("admin.actions.confirm_action",
+ action: t("admin.actions.unmark_featured"),
+ name: debate.title) } %>
<% else %>
<%= link_to t("admin.actions.mark_featured").capitalize, mark_featured_debate_path(debate),
- method: :put, data: { confirm: t("admin.actions.confirm_action", action: t("admin.actions.mark_featured"), name: debate.title) } %>
+ method: :put,
+ data: { confirm: t("admin.actions.confirm_action",
+ action: t("admin.actions.mark_featured"),
+ name: debate.title) } %>
<% end %>
<% end %>
diff --git a/app/views/debates/index.html.erb b/app/views/debates/index.html.erb
index 08647fee1..6e51a2b5e 100644
--- a/app/views/debates/index.html.erb
+++ b/app/views/debates/index.html.erb
@@ -69,7 +69,7 @@
<%= t("debates.index.section_footer.description") %>
<%= t("debates.index.section_footer.help_text_1") %>
<%= sanitize(t("debates.index.section_footer.help_text_2",
- org: link_to(setting["org_name"], new_user_registration_path))) %>
+ org: link_to(setting["org_name"], new_user_registration_path))) %>
<% end %>
diff --git a/app/views/debates/show.html.erb b/app/views/debates/show.html.erb
index 52f6dd160..52146ee68 100644
--- a/app/views/debates/show.html.erb
+++ b/app/views/debates/show.html.erb
@@ -60,11 +60,11 @@
<%= render "debates/votes", debate: @debate %>
<%= render "shared/social_share",
- share_title: t("debates.show.share"),
- title: @debate.title,
- url: debate_url(@debate),
- description: @debate.title,
- mobile: @debate.title %>
+ share_title: t("debates.show.share"),
+ title: @debate.title,
+ url: debate_url(@debate),
+ description: @debate.title,
+ mobile: @debate.title %>
diff --git a/app/views/devise/confirmations/show.html.erb b/app/views/devise/confirmations/show.html.erb
index b6c7d5729..4024802a2 100644
--- a/app/views/devise/confirmations/show.html.erb
+++ b/app/views/devise/confirmations/show.html.erb
@@ -15,12 +15,12 @@
<%= f.password_field :password,
- autofocus: true,
- label: t("devise_views.confirmations.show.new_password_label") %>
+ autofocus: true,
+ label: t("devise_views.confirmations.show.new_password_label") %>
<%= f.password_field :password_confirmation,
- label: t("devise_views.confirmations.show.new_password_confirmation_label") %>
+ label: t("devise_views.confirmations.show.new_password_confirmation_label") %>
diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb
index 0ed59c5ca..968d64321 100644
--- a/app/views/devise/sessions/new.html.erb
+++ b/app/views/devise/sessions/new.html.erb
@@ -5,7 +5,7 @@
<%= sanitize(t("devise_views.shared.links.signup",
- signup_link: link_to(t("devise_views.shared.links.signup_link"), new_user_registration_path))) %>
+ signup_link: link_to(t("devise_views.shared.links.signup_link"), new_user_registration_path))) %>
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %>
diff --git a/app/views/direct_messages/new.html.erb b/app/views/direct_messages/new.html.erb
index 8c0635a26..1343f6363 100644
--- a/app/views/direct_messages/new.html.erb
+++ b/app/views/direct_messages/new.html.erb
@@ -10,7 +10,8 @@
<%= sanitize(t("users.login_to_continue",
- signin: link_to_signin, signup: link_to_signup)) %>
+ signin: link_to_signin,
+ signup: link_to_signup)) %>
<% elsif not @receiver.email_on_direct_message? %>
@@ -34,7 +35,7 @@
<%= sanitize(t("users.direct_messages.new.verified_only",
- verify_account: link_to_verify_account)) %>
+ verify_account: link_to_verify_account)) %>
<% end %>
diff --git a/app/views/direct_messages/show.html.erb b/app/views/direct_messages/show.html.erb
index 7a3ce847a..7ee6abb87 100644
--- a/app/views/direct_messages/show.html.erb
+++ b/app/views/direct_messages/show.html.erb
@@ -6,7 +6,7 @@
<%= t("users.direct_messages.show.receiver",
- receiver: @direct_message.receiver.name) %>
+ receiver: @direct_message.receiver.name) %>
<%= @direct_message.title %>
diff --git a/app/views/documents/_document.html.erb b/app/views/documents/_document.html.erb
index 5f6b52378..a2a244933 100644
--- a/app/views/documents/_document.html.erb
+++ b/app/views/documents/_document.html.erb
@@ -15,9 +15,9 @@
<% if can?(:destroy, document) %>
<%= link_to t("documents.buttons.destroy_document"),
- document,
- method: :delete,
- data: { confirm: t("documents.actions.destroy.confirm") },
- class: "delete" %>
+ document,
+ method: :delete,
+ data: { confirm: t("documents.actions.destroy.confirm") },
+ class: "delete" %>
<% end %>
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 1f7e0e617..eb84e2688 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -5,9 +5,9 @@
<%= render "layouts/meta_tags" %>
<%= content_for :canonical %>
<%= favicon_link_tag image_path_for("apple-touch-icon-200.png"),
- rel: "icon apple-touch-icon",
- sizes: "200x200",
- type: "image/png" %>
+ rel: "icon apple-touch-icon",
+ sizes: "200x200",
+ type: "image/png" %>
<%= content_for :social_media_meta_tags %>
<%= raw setting["html.per_page_code_head"] %>
@@ -28,10 +28,14 @@
<%= t("layouts.application.ie_title") %>
<%= sanitize(t("layouts.application.ie",
- chrome: link_to(
- t("layouts.application.chrome"), "https://www.google.com/chrome/browser/desktop/", title: t("shared.target_blank"), target: "_blank"),
- firefox: link_to(
- t("layouts.application.firefox"), "https://www.mozilla.org/firefox", title: t("shared.target_blank"), target: "_blank")
+ chrome: link_to(t("layouts.application.chrome"),
+ "https://www.google.com/chrome/browser/desktop/",
+ title: t("shared.target_blank"),
+ target: "_blank"),
+ firefox: link_to(t("layouts.application.firefox"),
+ "https://www.mozilla.org/firefox",
+ title: t("shared.target_blank"),
+ target: "_blank")
)) %>
diff --git a/app/views/layouts/dashboard.html.erb b/app/views/layouts/dashboard.html.erb
index ffdfc9439..77f42bdcc 100644
--- a/app/views/layouts/dashboard.html.erb
+++ b/app/views/layouts/dashboard.html.erb
@@ -5,9 +5,9 @@
<%= render "layouts/meta_tags" %>
<%= content_for :canonical %>
<%= favicon_link_tag image_path_for("apple-touch-icon-200.png"),
- rel: "icon apple-touch-icon",
- sizes: "200x200",
- type: "image/png" %>
+ rel: "icon apple-touch-icon",
+ sizes: "200x200",
+ type: "image/png" %>
<%= content_for :social_media_meta_tags %>
<%= raw setting["per_page_code_head"] %>
diff --git a/app/views/legislation/annotations/_comments_box.html.erb b/app/views/legislation/annotations/_comments_box.html.erb
index c33429e07..8b06813d9 100644
--- a/app/views/legislation/annotations/_comments_box.html.erb
+++ b/app/views/legislation/annotations/_comments_box.html.erb
@@ -23,10 +23,10 @@
diff --git a/app/views/legislation/draft_versions/show.html.erb b/app/views/legislation/draft_versions/show.html.erb
index f4f1ad0ed..e42bb0920 100644
--- a/app/views/legislation/draft_versions/show.html.erb
+++ b/app/views/legislation/draft_versions/show.html.erb
@@ -25,7 +25,7 @@
<% end %>
<%= t("legislation.draft_versions.show.updated_at",
- date: format_date(@draft_version.updated_at)) %>
+ date: format_date(@draft_version.updated_at)) %>
<% unless @draft_version.final_version? %>
diff --git a/app/views/legislation/processes/_header.html.erb b/app/views/legislation/processes/_header.html.erb
index eb05108a5..0e38798d8 100644
--- a/app/views/legislation/processes/_header.html.erb
+++ b/app/views/legislation/processes/_header.html.erb
@@ -3,9 +3,10 @@
<% if banner_color? %>
- <%= link_to t("shared.back"), legislation_processes_path,
- class: "icon-angle-left",
- style: "color:#{process.font_color};" %>
+ <%= link_to t("shared.back"),
+ legislation_processes_path,
+ class: "icon-angle-left",
+ style: "color:#{process.font_color};" %>
<% else %>
<%= back_link_to legislation_processes_path %>
<% end %>
@@ -37,11 +38,11 @@
<%= render "shared/social_share",
- share_title: t("proposals.show.share"),
- title: @proposal.title,
- url: legislation_process_proposal_url(process_id: @process),
- description: @proposal.summary,
- mobile: @proposal.title %>
+ share_title: t("proposals.show.share"),
+ title: @proposal.title,
+ url: legislation_process_proposal_url(process_id: @process),
+ description: @proposal.summary,
+ mobile: @proposal.title %>
diff --git a/app/views/legislation/questions/_participation_not_allowed.html.erb b/app/views/legislation/questions/_participation_not_allowed.html.erb
index 4e72372bb..35d6f351c 100644
--- a/app/views/legislation/questions/_participation_not_allowed.html.erb
+++ b/app/views/legislation/questions/_participation_not_allowed.html.erb
@@ -8,13 +8,14 @@
<%= sanitize(t("legislation.questions.participation.verified_only",
- verify_account: link_to_verify_account)) %>
+ verify_account: link_to_verify_account)) %>
<% elsif !user_signed_in? %>
<%= sanitize(t("legislation.questions.participation.unauthenticated",
- signin: link_to_signin, signup: link_to_signup)) %>
+ signin: link_to_signin,
+ signup: link_to_signup)) %>
<% elsif !@process.debate_phase.open? %>
diff --git a/app/views/mailer/budget_investment_created.html.erb b/app/views/mailer/budget_investment_created.html.erb
index 8c2da30c6..12f945b41 100644
--- a/app/views/mailer/budget_investment_created.html.erb
+++ b/app/views/mailer/budget_investment_created.html.erb
@@ -21,8 +21,9 @@
<%= sanitize(
t("mailers.budget_investment_created.follow",
- link: link_to(t("mailers.budget_investment_created.follow_link"), budgets_url,
- style: css_for_mailer_link)
+ link: link_to(t("mailers.budget_investment_created.follow_link"),
+ budgets_url,
+ style: css_for_mailer_link)
),
attributes: %w[href style]
) %>
diff --git a/app/views/mailer/direct_message_for_receiver.html.erb b/app/views/mailer/direct_message_for_receiver.html.erb
index efe41e744..33c64f941 100644
--- a/app/views/mailer/direct_message_for_receiver.html.erb
+++ b/app/views/mailer/direct_message_for_receiver.html.erb
@@ -13,7 +13,7 @@
<%= link_to user_url(@direct_message.sender), style: css_for_mailer_button, target: "_blank" do %>
<%= t("mailers.direct_message_for_receiver.reply",
- sender: @direct_message.sender.name) %>
+ sender: @direct_message.sender.name) %>
<% end %>
|
diff --git a/app/views/mailer/user_invite.html.erb b/app/views/mailer/user_invite.html.erb
index aa435ec9d..0b5151fb3 100644
--- a/app/views/mailer/user_invite.html.erb
+++ b/app/views/mailer/user_invite.html.erb
@@ -1,12 +1,10 @@
- <%= t("mailers.user_invite.title",
- org: Setting["org_name"]) %>
+ <%= t("mailers.user_invite.title", org: Setting["org_name"]) %>
- <%= t("mailers.user_invite.text",
- org: Setting["org_name"]) %>
+ <%= t("mailers.user_invite.text", org: Setting["org_name"]) %>
diff --git a/app/views/management/_account_info.html.erb b/app/views/management/_account_info.html.erb
index cb262a9ef..ab37d813b 100644
--- a/app/views/management/_account_info.html.erb
+++ b/app/views/management/_account_info.html.erb
@@ -1,9 +1,9 @@
<% if managed_user.document_number.present? %>
<%= link_to(t("management.account_info.change_user"),
- logout_management_users_path,
- method: :delete,
- class: "float-right btchange-user button hollow") %>
+ logout_management_users_path,
+ method: :delete,
+ class: "float-right btchange-user button hollow") %>
<% if managed_user.level_two_or_three_verified? %>
diff --git a/app/views/management/budgets/investments/index.html.erb b/app/views/management/budgets/investments/index.html.erb
index caad26e8b..dd64ebeaf 100644
--- a/app/views/management/budgets/investments/index.html.erb
+++ b/app/views/management/budgets/investments/index.html.erb
@@ -19,9 +19,9 @@
<% @investments.each do |investment| %>
<%= render "/budgets/investments/investment",
- investment: investment,
- investment_ids: @investment_ids,
- ballot: @ballot %>
+ investment: investment,
+ investment_ids: @investment_ids,
+ ballot: @ballot %>
<% end %>
<%= paginate @investments %>
diff --git a/app/views/management/budgets/investments/print.html.erb b/app/views/management/budgets/investments/print.html.erb
index f2ef18e22..9eb52c9af 100644
--- a/app/views/management/budgets/investments/print.html.erb
+++ b/app/views/management/budgets/investments/print.html.erb
@@ -24,9 +24,9 @@
<% @investments.each do |investment| %>
<%= render "/budgets/investments/investment",
- investment: investment,
- investment_ids: @investment_ids,
- ballot: @ballot %>
+ investment: investment,
+ investment_ids: @investment_ids,
+ ballot: @ballot %>
<% end %>
diff --git a/app/views/management/document_verifications/invalid_document.html.erb b/app/views/management/document_verifications/invalid_document.html.erb
index 086145d98..ef0aa7686 100644
--- a/app/views/management/document_verifications/invalid_document.html.erb
+++ b/app/views/management/document_verifications/invalid_document.html.erb
@@ -7,10 +7,10 @@
<%= render "management/user_permissions",
- message: t("management.document_verifications.not_in_census_info"),
- user: User.new %>
+ message: t("management.document_verifications.not_in_census_info"),
+ user: User.new %>
<%= sanitize(t("management.document_verifications.has_no_account",
- link: link_to(t("management.document_verifications.link"), root_path, target: "_blank"))) %>
+ link: link_to(t("management.document_verifications.link"), root_path, target: "_blank"))) %>
diff --git a/app/views/management/document_verifications/new.html.erb b/app/views/management/document_verifications/new.html.erb
index ee9cd1267..a87f2609c 100644
--- a/app/views/management/document_verifications/new.html.erb
+++ b/app/views/management/document_verifications/new.html.erb
@@ -3,12 +3,12 @@
<%= render "management/user_permissions",
- message: t("management.document_verifications.in_census_has_following_permissions"),
- user: @document_verification.user %>
+ message: t("management.document_verifications.in_census_has_following_permissions"),
+ user: @document_verification.user %>
<%= form_for @document_verification,
- as: :document_verification,
- url: management_document_verifications_path do |f| %>
+ as: :document_verification,
+ url: management_document_verifications_path do |f| %>
<%= f.hidden_field :document_type %>
<%= f.hidden_field :document_number %>
<%= f.submit t("management.document_verifications.verify"), class: "button success" %>
diff --git a/app/views/management/document_verifications/verified.html.erb b/app/views/management/document_verifications/verified.html.erb
index 1365c9910..7cb3cff4c 100644
--- a/app/views/management/document_verifications/verified.html.erb
+++ b/app/views/management/document_verifications/verified.html.erb
@@ -3,7 +3,7 @@
<%= render "management/user_permissions",
- message: t("management.document_verifications.in_census_has_following_permissions"),
- user: @document_verification.user %>
+ message: t("management.document_verifications.in_census_has_following_permissions"),
+ user: @document_verification.user %>
<%= t("management.print_info") %>
diff --git a/app/views/management/email_verifications/new.html.erb b/app/views/management/email_verifications/new.html.erb
index 756ede6de..955e96343 100644
--- a/app/views/management/email_verifications/new.html.erb
+++ b/app/views/management/email_verifications/new.html.erb
@@ -7,8 +7,8 @@
<%= t("management.email_verifications.if_existing_account") %>
<%= form_for @email_verification,
- as: :email_verification,
- url: management_email_verifications_path do |f| %>
+ as: :email_verification,
+ url: management_email_verifications_path do |f| %>
<%= f.hidden_field :document_type %>
<%= f.hidden_field :document_number %>
<%= f.text_field :email, label: t("management.email_verifications.introduce_email") %>
diff --git a/app/views/management/email_verifications/sent.html.erb b/app/views/management/email_verifications/sent.html.erb
index 7e7ca2e60..bf999f2ff 100644
--- a/app/views/management/email_verifications/sent.html.erb
+++ b/app/views/management/email_verifications/sent.html.erb
@@ -3,8 +3,8 @@
<%= render "management/user_permissions",
- message: t("management.email_verifications.document_found_in_census"),
- user: @email_verification.user %>
+ message: t("management.email_verifications.document_found_in_census"),
+ user: @email_verification.user %>
<%= t("management.print_info") %>
diff --git a/app/views/management/users/new.html.erb b/app/views/management/users/new.html.erb
index 6c7baad7d..e7431d0f3 100644
--- a/app/views/management/users/new.html.erb
+++ b/app/views/management/users/new.html.erb
@@ -7,9 +7,9 @@
<%= f.hidden_field :document_type %>
<%= f.hidden_field :document_number %>
<%= f.text_field :username,
- label: t("management.username_label") %>
+ label: t("management.username_label") %>
<%= f.text_field :email,
- label: t("management.users.email_optional_label") %>
+ label: t("management.users.email_optional_label") %>
<%= f.date_select :date_of_birth,
prompt: true,
@@ -24,7 +24,7 @@
<%= render "management/user_permissions",
- message: t("management.document_verifications.in_census_has_following_permissions"),
- user: @user %>
+ message: t("management.document_verifications.in_census_has_following_permissions"),
+ user: @user %>
diff --git a/app/views/management/users/show.html.erb b/app/views/management/users/show.html.erb
index 86bc4a377..02eb19d4f 100644
--- a/app/views/management/users/show.html.erb
+++ b/app/views/management/users/show.html.erb
@@ -5,7 +5,7 @@
<% end %>
<%= render "management/user_permissions",
- message: t("management.document_verifications.in_census_has_following_permissions"),
- user: @user %>
+ message: t("management.document_verifications.in_census_has_following_permissions"),
+ user: @user %>
<%= t("management.print_info") %>
diff --git a/app/views/milestones/_milestone.html.erb b/app/views/milestones/_milestone.html.erb
index 52f8e6956..79b5fdf99 100644
--- a/app/views/milestones/_milestone.html.erb
+++ b/app/views/milestones/_milestone.html.erb
@@ -37,9 +37,9 @@
<% milestone.documents.each do |document| %>
<%= link_to document.title,
- document.attachment,
- target: "_blank",
- rel: "nofollow" %>
+ document.attachment,
+ target: "_blank",
+ rel: "nofollow" %>
<%= document.humanized_content_type %> |
<%= number_to_human_size(document.attachment_file_size, precision: 2) %>
diff --git a/app/views/notifications/_notification.html.erb b/app/views/notifications/_notification.html.erb
index 4eae3d8c5..b19be5432 100644
--- a/app/views/notifications/_notification.html.erb
+++ b/app/views/notifications/_notification.html.erb
@@ -16,13 +16,15 @@
<% if notification.unread? %>
<%= link_to t("notifications.notification.mark_as_read"),
- mark_as_read_notification_path(notification),
- method: :put, remote: true,
- class: "mark-notification small" %>
+ mark_as_read_notification_path(notification),
+ method: :put,
+ remote: true,
+ class: "mark-notification small" %>
<% else %>
<%= link_to t("notifications.notification.mark_as_unread"),
- mark_as_unread_notification_path(notification),
- method: :put, remote: true,
- class: "mark-notification small" %>
+ mark_as_unread_notification_path(notification),
+ method: :put,
+ remote: true,
+ class: "mark-notification small" %>
<% end %>
diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb
index e232b8fed..95ef36e03 100644
--- a/app/views/notifications/index.html.erb
+++ b/app/views/notifications/index.html.erb
@@ -6,9 +6,9 @@
<%= link_to t("notifications.index.mark_all_as_read"),
- mark_all_as_read_notifications_path,
- method: :put,
- class: "button hollow float-right-medium" %>
+ mark_all_as_read_notifications_path,
+ method: :put,
+ class: "button hollow float-right-medium" %>
diff --git a/app/views/organizations/registrations/new.html.erb b/app/views/organizations/registrations/new.html.erb
index 1b5bfbd12..09b462f6d 100644
--- a/app/views/organizations/registrations/new.html.erb
+++ b/app/views/organizations/registrations/new.html.erb
@@ -9,8 +9,8 @@
<%= f.fields_for :organization do |fo| %>
<%= fo.text_field :name, autofocus: true, maxlength: Organization.name_max_length %>
<%= fo.text_field :responsible_name,
- maxlength: Organization.responsible_name_max_length,
- hint: t("devise_views.organizations.registrations.new.responsible_name_note") %>
+ maxlength: Organization.responsible_name_max_length,
+ hint: t("devise_views.organizations.registrations.new.responsible_name_note") %>
<% end %>
<%= f.email_field :email %>
@@ -25,13 +25,13 @@
label: t("devise_views.organizations.registrations.new.password_confirmation_label") %>
<%= f.check_box :terms_of_service,
- title: t("devise_views.users.registrations.new.terms_title"),
- label: t("devise_views.users.registrations.new.terms",
- terms: link_to(t("devise_views.users.registrations.new.terms_link"),
- "/conditions",
- title: t("shared.target_blank"),
- target: "_blank")
- ) %>
+ title: t("devise_views.users.registrations.new.terms_title"),
+ label: t("devise_views.users.registrations.new.terms",
+ terms: link_to(t("devise_views.users.registrations.new.terms_link"),
+ "/conditions",
+ title: t("shared.target_blank"),
+ target: "_blank")
+ ) %>
<%= f.submit t("devise_views.organizations.registrations.new.submit"), class: "button expanded" %>
diff --git a/app/views/organizations/registrations/success.html.erb b/app/views/organizations/registrations/success.html.erb
index e4425b53a..252c2ee7f 100644
--- a/app/views/organizations/registrations/success.html.erb
+++ b/app/views/organizations/registrations/success.html.erb
@@ -5,5 +5,6 @@
<%= t("devise_views.organizations.registrations.success.instructions_3") %>
<%= link_to t("devise_views.organizations.registrations.success.back_to_index"),
- root_path, class: "button margin-top expanded" %>
+ root_path,
+ class: "button margin-top expanded" %>
diff --git a/app/views/pages/help/_budgets.html.erb b/app/views/pages/help/_budgets.html.erb
index 21d8c53d0..8712d9708 100644
--- a/app/views/pages/help/_budgets.html.erb
+++ b/app/views/pages/help/_budgets.html.erb
@@ -1,6 +1,6 @@
<%= render Pages::Help::SectionComponent.new("budgets") do %>
<%= sanitize(t("pages.help.budgets.description",
- link: link_to(t("pages.help.budgets.link"), budgets_path))) %>
+ link: link_to(t("pages.help.budgets.link"), budgets_path))) %>
<% end %>
diff --git a/app/views/pages/help/_debates.html.erb b/app/views/pages/help/_debates.html.erb
index db380a20e..262e2bb8b 100644
--- a/app/views/pages/help/_debates.html.erb
+++ b/app/views/pages/help/_debates.html.erb
@@ -1,14 +1,14 @@
<%= render Pages::Help::SectionComponent.new("debates") do %>
<%= sanitize(t("pages.help.debates.description",
- org: setting["org_name"],
- link: link_to(t("pages.help.debates.link"), debates_path))) %>
+ org: setting["org_name"],
+ link: link_to(t("pages.help.debates.link"), debates_path))) %>
-
<%= sanitize(t("pages.help.debates.feature",
- link: link_to(t("pages.help.debates.feature_link", org: setting["org_name"]),
- new_user_registration_path))) %>
+ link: link_to(t("pages.help.debates.feature_link", org: setting["org_name"]),
+ new_user_registration_path))) %>
<% end %>
diff --git a/app/views/pages/help/_polls.html.erb b/app/views/pages/help/_polls.html.erb
index c7d1dd40c..f135c38c8 100644
--- a/app/views/pages/help/_polls.html.erb
+++ b/app/views/pages/help/_polls.html.erb
@@ -1,13 +1,13 @@
<%= render Pages::Help::SectionComponent.new("polls") do %>
<%= sanitize(t("pages.help.polls.description",
- link: link_to(t("pages.help.polls.link"), polls_path))) %>
+ link: link_to(t("pages.help.polls.link"), polls_path))) %>
-
<%= sanitize(t("pages.help.polls.feature_1",
- link: link_to(t("pages.help.polls.feature_1_link", org_name: setting["org_name"]),
- new_user_registration_path))) %>
+ link: link_to(t("pages.help.polls.feature_1_link", org_name: setting["org_name"]),
+ new_user_registration_path))) %>
<% end %>
diff --git a/app/views/pages/help/_processes.html.erb b/app/views/pages/help/_processes.html.erb
index 18178f385..38352e135 100644
--- a/app/views/pages/help/_processes.html.erb
+++ b/app/views/pages/help/_processes.html.erb
@@ -6,8 +6,8 @@
-
<%= sanitize(t("pages.help.processes.feature",
- link: link_to(t("pages.help.processes.feature_link", org_name: setting["org_name"]),
- new_user_registration_path))) %>
+ link: link_to(t("pages.help.processes.feature_link", org_name: setting["org_name"]),
+ new_user_registration_path))) %>
<% end %>
diff --git a/app/views/pages/help/_proposals.html.erb b/app/views/pages/help/_proposals.html.erb
index ef6875e67..9a8634eb9 100644
--- a/app/views/pages/help/_proposals.html.erb
+++ b/app/views/pages/help/_proposals.html.erb
@@ -1,6 +1,6 @@
<%= render Pages::Help::SectionComponent.new("proposals") do %>
<%= sanitize(t("pages.help.proposals.description",
- link: link_to(t("pages.help.proposals.link"), proposals_path))) %>
+ link: link_to(t("pages.help.proposals.link"), proposals_path))) %>
<% end %>
diff --git a/app/views/polls/_callout.html.erb b/app/views/polls/_callout.html.erb
index 5a837d0e3..432d8c984 100644
--- a/app/views/polls/_callout.html.erb
+++ b/app/views/polls/_callout.html.erb
@@ -2,13 +2,13 @@
<% if current_user.nil? %>
<%= sanitize(t("polls.show.cant_answer_not_logged_in",
- signin: link_to_signin(class: "probe-message"),
- signup: link_to_signup(class: "probe-message"))) %>
+ signin: link_to_signin(class: "probe-message"),
+ signup: link_to_signup(class: "probe-message"))) %>
<% elsif current_user.unverified? %>
<%= sanitize(t("polls.show.cant_answer_verify",
- verify_link: link_to(t("polls.show.verify_link"), verification_path))) %>
+ verify_link: link_to(t("polls.show.verify_link"), verification_path))) %>
<% elsif @poll.expired? %>
diff --git a/app/views/polls/_poll_header.html.erb b/app/views/polls/_poll_header.html.erb
index 77e95679d..73cd608db 100644
--- a/app/views/polls/_poll_header.html.erb
+++ b/app/views/polls/_poll_header.html.erb
@@ -23,11 +23,11 @@
diff --git a/app/views/polls/show.html.erb b/app/views/polls/show.html.erb
index c88a7ce0a..3d9d88494 100644
--- a/app/views/polls/show.html.erb
+++ b/app/views/polls/show.html.erb
@@ -2,11 +2,11 @@
<%= provide :meta_description, t("social_share.polls_show.description_#{@poll.id}", default: @poll.title) %>
<%= provide :social_media_meta_tags do %>
<%= render "shared/social_media_meta_tags",
- social_url: poll_url,
- social_title: t("social_share.polls_show.title_#{@poll.id}", default: @poll.title),
- social_description: t("social_share.polls_show.facebook_#{@poll.id}", default: @poll.title),
- twitter_image_url: "social_media_polls_twitter.jpg",
- og_image_url: "social_media_polls.jpg" %>
+ social_url: poll_url,
+ social_title: t("social_share.polls_show.title_#{@poll.id}", default: @poll.title),
+ social_description: t("social_share.polls_show.facebook_#{@poll.id}", default: @poll.title),
+ twitter_image_url: "social_media_polls_twitter.jpg",
+ og_image_url: "social_media_polls.jpg" %>
<% end %>
diff --git a/app/views/proposal_notifications/new.html.erb b/app/views/proposal_notifications/new.html.erb
index 7089e7f49..9075def3a 100644
--- a/app/views/proposal_notifications/new.html.erb
+++ b/app/views/proposal_notifications/new.html.erb
@@ -7,9 +7,9 @@
<%= sanitize(t("proposal_notifications.new.info_about_receivers",
- count: @proposal.users_to_notify.count,
- proposal_page: link_to(t("proposal_notifications.new.proposal_page"),
- proposal_path(@proposal, anchor: "comments")))) %>
+ count: @proposal.users_to_notify.count,
+ proposal_page: link_to(t("proposal_notifications.new.proposal_page"),
+ proposal_path(@proposal, anchor: "comments")))) %>
diff --git a/app/views/proposals/_info.html.erb b/app/views/proposals/_info.html.erb
index 71060a514..ec5d2b866 100644
--- a/app/views/proposals/_info.html.erb
+++ b/app/views/proposals/_info.html.erb
@@ -68,8 +68,8 @@
<% if feature?(:allow_attached_documents) %>
<%= render "documents/documents",
- documents: @proposal.documents,
- max_documents_allowed: Proposal.max_documents_allowed %>
+ documents: @proposal.documents,
+ max_documents_allowed: Proposal.max_documents_allowed %>
<% end %>
<%= render "shared/tags", taggable: @proposal %>
diff --git a/app/views/proposals/_social_share.html.erb b/app/views/proposals/_social_share.html.erb
index fedfa587a..2dcc2ffde 100644
--- a/app/views/proposals/_social_share.html.erb
+++ b/app/views/proposals/_social_share.html.erb
@@ -1,10 +1,10 @@
<%= render "shared/social_share",
- share_title: share_title,
- title: proposal.title,
- url: proposal_url(proposal),
- description: t("proposals.share.message",
- title: proposal.title,
- handle: setting["org_name"]),
- mobile: t("proposals.share.message",
- title: proposal.title,
- handle: setting["twitter_handle"]) %>
+ share_title: share_title,
+ title: proposal.title,
+ url: proposal_url(proposal),
+ description: t("proposals.share.message",
+ title: proposal.title,
+ handle: setting["org_name"]),
+ mobile: t("proposals.share.message",
+ title: proposal.title,
+ handle: setting["twitter_handle"]) %>
diff --git a/app/views/proposals/_supports.html.erb b/app/views/proposals/_supports.html.erb
index 2ff839593..e58d353a4 100644
--- a/app/views/proposals/_supports.html.erb
+++ b/app/views/proposals/_supports.html.erb
@@ -10,7 +10,7 @@
">
<%= t("proposals.proposal.supports_necessary",
- number: number_with_delimiter(Proposal.votes_needed_for_success)) %>
+ number: number_with_delimiter(Proposal.votes_needed_for_success)) %>
diff --git a/app/views/proposals/retire_form.html.erb b/app/views/proposals/retire_form.html.erb
index 4fb65cb3e..e22d80255 100644
--- a/app/views/proposals/retire_form.html.erb
+++ b/app/views/proposals/retire_form.html.erb
@@ -16,8 +16,9 @@
<%= render "shared/errors", resource: @proposal %>
- <%= f.select :retired_reason, retire_proposals_options,
- include_blank: t("proposals.retire_form.retired_reason_blank") %>
+ <%= f.select :retired_reason,
+ retire_proposals_options,
+ include_blank: t("proposals.retire_form.retired_reason_blank") %>
@@ -25,8 +26,9 @@
<%= f.translatable_fields do |translations_form| %>
<%= translations_form.text_area :retired_explanation,
- rows: 4, maxlength: 500,
- placeholder: t("proposals.retire_form.retired_explanation_placeholder") %>
+ rows: 4,
+ maxlength: 500,
+ placeholder: t("proposals.retire_form.retired_explanation_placeholder") %>
<% end %>
diff --git a/app/views/proposals/share.html.erb b/app/views/proposals/share.html.erb
index 1ee1938de..26e2453a6 100644
--- a/app/views/proposals/share.html.erb
+++ b/app/views/proposals/share.html.erb
@@ -1,9 +1,9 @@
<% provide :title do %><%= @proposal.title %><% end %>
<% provide :social_media_meta_tags do %>
<%= render "shared/social_media_meta_tags",
- social_url: proposal_url(@proposal),
- social_title: @proposal.title,
- social_description: @proposal.summary %>
+ social_url: proposal_url(@proposal),
+ social_title: @proposal.title,
+ social_description: @proposal.summary %>
<% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: proposal_url(@proposal) %>
@@ -25,10 +25,10 @@
<%= render "shared/social_share",
- title: @proposal.title,
- url: proposal_url(@proposal),
- description: @proposal.summary,
- mobile: @proposal.title %>
+ title: @proposal.title,
+ url: proposal_url(@proposal),
+ description: @proposal.summary,
+ mobile: @proposal.title %>
<% if can?(:dashboard, @proposal) %>
diff --git a/app/views/proposals/show.html.erb b/app/views/proposals/show.html.erb
index ea2c5e844..d3dafbc8f 100644
--- a/app/views/proposals/show.html.erb
+++ b/app/views/proposals/show.html.erb
@@ -3,11 +3,11 @@
<% content_for :meta_description do %><%= @proposal.summary %><% end %>
<% provide :social_media_meta_tags do %>
<%= render "shared/social_media_meta_tags",
- social_url: proposal_url(@proposal),
- social_title: @proposal.title,
- social_description: @proposal.summary,
- twitter_image_url: (@proposal.image.present? ? polymorphic_path(@proposal.image.variant(:thumb)) : nil),
- og_image_url: (@proposal.image.present? ? polymorphic_path(@proposal.image.variant(:thumb)) : nil) %>
+ social_url: proposal_url(@proposal),
+ social_title: @proposal.title,
+ social_description: @proposal.summary,
+ twitter_image_url: (@proposal.image.present? ? polymorphic_path(@proposal.image.variant(:thumb)) : nil),
+ og_image_url: (@proposal.image.present? ? polymorphic_path(@proposal.image.variant(:thumb)) : nil) %>
<% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: proposal_url(@proposal) %>
diff --git a/app/views/relationable/_form.html.erb b/app/views/relationable/_form.html.erb
index 4f2def3aa..44d22d44c 100644
--- a/app/views/relationable/_form.html.erb
+++ b/app/views/relationable/_form.html.erb
@@ -12,8 +12,8 @@
| |
<%= t("communities.poll.take_part", - from: l(poll.starts_at.to_date), to: l(poll.ends_at.to_date)) %> + from: l(poll.starts_at.to_date), + to: l(poll.ends_at.to_date)) %>