diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml
index ed9fa9769..bd96f0541 100644
--- a/.github/workflows/linters.yml
+++ b/.github/workflows/linters.yml
@@ -21,6 +21,8 @@ jobs:
run: npx stylelint app/assets/stylesheets
- name: Markdownlint
run: bundle exec mdl *.md docs/
+ - name: HTML Beautifier
+ run: find app/ -name "*.html.erb" -exec bundle exec htmlbeautifier --lint-only --keep-blank-lines 1 {} +
name: ${{ matrix.name }}
steps:
- name: Checkout code
diff --git a/Gemfile b/Gemfile
index 4b699cd3c..3d21d2707 100644
--- a/Gemfile
+++ b/Gemfile
@@ -95,6 +95,7 @@ group :development do
gem "capistrano3-puma", "~> 5.2.0"
gem "erb_lint", "~> 0.9.0", require: false
gem "faraday-retry", "~> 2.2.1", require: false
+ gem "htmlbeautifier", "~> 1.4.3", require: false
gem "mdl", "~> 0.13.0", require: false
gem "pronto", "~> 0.11.2", require: false
gem "pronto-erb_lint", "~> 0.1.6", require: false
diff --git a/Gemfile.lock b/Gemfile.lock
index 90077cfa9..e35190afc 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -272,6 +272,7 @@ GEM
hashery (2.1.2)
hashie (5.0.0)
highline (2.0.3)
+ htmlbeautifier (1.4.3)
htmlentities (4.3.4)
httparty (0.22.0)
csv
@@ -755,6 +756,7 @@ DEPENDENCIES
graphiql-rails (~> 1.8.0)
graphql (~> 2.3.18)
groupdate (~> 6.5.1)
+ htmlbeautifier (~> 1.4.3)
i18n-tasks (~> 0.9.37)
image_processing (~> 1.13.0)
invisible_captcha (~> 2.3.0)
diff --git a/app/components/admin/poll/shifts/form_component.html.erb b/app/components/admin/poll/shifts/form_component.html.erb
index 74ac8105e..b5e74ba6a 100644
--- a/app/components/admin/poll/shifts/form_component.html.erb
+++ b/app/components/admin/poll/shifts/form_component.html.erb
@@ -8,7 +8,8 @@
<%= t("admin.poll_shifts.new.officer") %>
-
<%= officer.name %>
+
+ <%= officer.name %>
<%= f.hidden_field :officer_id, value: officer.id %>
diff --git a/app/components/admin/site_customization/pages/index_component.html.erb b/app/components/admin/site_customization/pages/index_component.html.erb
index fb81ae0a1..9a21de8b8 100644
--- a/app/components/admin/site_customization/pages/index_component.html.erb
+++ b/app/components/admin/site_customization/pages/index_component.html.erb
@@ -17,28 +17,28 @@
- <% pages.each do |page| %>
-
- | <%= page.title %> |
- <%= page.slug %> |
- <%= I18n.l page.created_at, format: :long %> |
- <%= I18n.l page.updated_at, format: :long %> |
- <%= t("admin.site_customization.pages.page.status_#{page.status}") %> |
-
- <%= render Admin::TableActionsComponent.new(page) do |actions| %>
- <%= actions.action(:cards,
- text: t("admin.site_customization.pages.page.see_cards"),
- path: admin_site_customization_page_widget_cards_path(page)) %>
+ <% pages.each do |page| %>
+ |
+ | <%= page.title %> |
+ <%= page.slug %> |
+ <%= I18n.l page.created_at, format: :long %> |
+ <%= I18n.l page.updated_at, format: :long %> |
+ <%= t("admin.site_customization.pages.page.status_#{page.status}") %> |
+
+ <%= render Admin::TableActionsComponent.new(page) do |actions| %>
+ <%= actions.action(:cards,
+ text: t("admin.site_customization.pages.page.see_cards"),
+ path: admin_site_customization_page_widget_cards_path(page)) %>
- <% if page.status == "published" %>
- <%= actions.action(:show,
- text: t("admin.site_customization.pages.index.see_page"),
- path: page.url) %>
+ <% if page.status == "published" %>
+ <%= actions.action(:show,
+ text: t("admin.site_customization.pages.index.see_page"),
+ path: page.url) %>
+ <% end %>
<% end %>
- <% end %>
- |
-
- <% end %>
+
+
+ <% end %>
diff --git a/app/components/admin/stats/budget_balloting_component.html.erb b/app/components/admin/stats/budget_balloting_component.html.erb
index da66118f3..0dc515c21 100644
--- a/app/components/admin/stats/budget_balloting_component.html.erb
+++ b/app/components/admin/stats/budget_balloting_component.html.erb
@@ -30,7 +30,9 @@
- | <%= t("admin.stats.budget_balloting.votes_per_heading") %> |
+
+ | <%= t("admin.stats.budget_balloting.votes_per_heading") %> |
+
@@ -49,7 +51,9 @@
- | <%= t("admin.stats.budget_balloting.participants_per_district") %> |
+
+ | <%= t("admin.stats.budget_balloting.participants_per_district") %> |
+
diff --git a/app/components/admin/stats/stat_component.html.erb b/app/components/admin/stats/stat_component.html.erb
index fa5b95999..41404061b 100644
--- a/app/components/admin/stats/stat_component.html.erb
+++ b/app/components/admin/stats/stat_component.html.erb
@@ -1,5 +1,6 @@
<%= tag.p(**options) do %>
- <%= text %>
<%= amount %>
+ <%= text %>
+ <%= amount %>
<% end %>
diff --git a/app/components/attachable/fields_component.html.erb b/app/components/attachable/fields_component.html.erb
index d51997e53..45d9770ba 100644
--- a/app/components/attachable/fields_component.html.erb
+++ b/app/components/attachable/fields_component.html.erb
@@ -24,7 +24,9 @@
diff --git a/app/components/layout/admin_header_component.html.erb b/app/components/layout/admin_header_component.html.erb
index 99d48e18a..41170c0ac 100644
--- a/app/components/layout/admin_header_component.html.erb
+++ b/app/components/layout/admin_header_component.html.erb
@@ -13,7 +13,8 @@
<%= link_to namespace_path do %>
<%= setting["org_name"] %>
-
<%= namespaced_header_title %>
+
+ <%= namespaced_header_title %>
<% end %>
diff --git a/app/components/polls/questions/read_more_component.html.erb b/app/components/polls/questions/read_more_component.html.erb
index 90d4e382e..655c2250a 100644
--- a/app/components/polls/questions/read_more_component.html.erb
+++ b/app/components/polls/questions/read_more_component.html.erb
@@ -47,9 +47,7 @@
<% option.videos.each do |video| %>
- <%= link_to video.title,
- video.url,
- rel: "nofollow" %>
+ <%= link_to video.title, video.url, rel: "nofollow" %>
<% end %>
<% end %>
diff --git a/app/views/admin/admin_notifications/index.html.erb b/app/views/admin/admin_notifications/index.html.erb
index de8b3f392..233d32f1b 100644
--- a/app/views/admin/admin_notifications/index.html.erb
+++ b/app/views/admin/admin_notifications/index.html.erb
@@ -14,34 +14,34 @@
- <% @admin_notifications.order(created_at: :desc).each do |admin_notification| %>
-
- |
- <%= admin_notification.title %>
- |
-
- <%= segment_name(admin_notification.segment_recipient) %>
- |
-
- <% if admin_notification.draft? %>
- <%= t("admin.admin_notifications.index.draft") %>
- <% else %>
- <%= l admin_notification.sent_at.to_date %>
- <% end %>
- |
-
- <% if admin_notification.draft? %>
- <%= render Admin::TableActionsComponent.new(admin_notification) do |actions| %>
- <%= actions.action(:preview, text: t("admin.admin_notifications.index.preview")) %>
+ <% @admin_notifications.order(created_at: :desc).each do |admin_notification| %>
+ |
+ |
+ <%= admin_notification.title %>
+ |
+
+ <%= segment_name(admin_notification.segment_recipient) %>
+ |
+
+ <% if admin_notification.draft? %>
+ <%= t("admin.admin_notifications.index.draft") %>
+ <% else %>
+ <%= l admin_notification.sent_at.to_date %>
<% end %>
- <% else %>
- <%= render Admin::TableActionsComponent.new(admin_notification, actions: []) do |actions| %>
- <%= actions.action(:show, text: t("admin.admin_notifications.index.view")) %>
+ |
+
+ <% if admin_notification.draft? %>
+ <%= render Admin::TableActionsComponent.new(admin_notification) do |actions| %>
+ <%= actions.action(:preview, text: t("admin.admin_notifications.index.preview")) %>
+ <% end %>
+ <% else %>
+ <%= render Admin::TableActionsComponent.new(admin_notification, actions: []) do |actions| %>
+ <%= actions.action(:show, text: t("admin.admin_notifications.index.view")) %>
+ <% end %>
<% end %>
- <% end %>
- |
-
- <% end %>
+
+
+ <% end %>
<% else %>
diff --git a/app/views/admin/admin_notifications/show.html.erb b/app/views/admin/admin_notifications/show.html.erb
index bf30a0aa3..6072864ca 100644
--- a/app/views/admin/admin_notifications/show.html.erb
+++ b/app/views/admin/admin_notifications/show.html.erb
@@ -28,7 +28,7 @@
-
<%= t("admin.admin_notifications.show.segment_recipient") %>
+
<%= t("admin.admin_notifications.show.segment_recipient") %>
<%= segment_name(@admin_notification.segment_recipient) %>
<% if @admin_notification.draft? %>
<%= t("admin.admin_notifications.show.will_get_notified",
diff --git a/app/views/admin/budget_investments/edit.html.erb b/app/views/admin/budget_investments/edit.html.erb
index cd4f2f540..e28c3b9f7 100644
--- a/app/views/admin/budget_investments/edit.html.erb
+++ b/app/views/admin/budget_investments/edit.html.erb
@@ -11,7 +11,7 @@
<%= render "shared/errors", resource: @investment %>
<% Budget::Investment.filter_params(params).to_h.each do |filter_name, filter_value| %>
- <%= hidden_field_tag filter_name, filter_value %>
+ <%= hidden_field_tag filter_name, filter_value %>
<% end %>
@@ -74,9 +74,9 @@
<%= f.label :valuator_ids %>
- <%= f.collection_check_boxes :valuator_group_ids, @valuator_groups, :id, :name do |group| %>
- - <%= group.label(title: group.object.name) { group.check_box + truncate(group.object.name, length: 60) } %>
- <% end %>
+ <%= f.collection_check_boxes :valuator_group_ids, @valuator_groups, :id, :name do |group| %>
+ - <%= group.label(title: group.object.name) { group.check_box + truncate(group.object.name, length: 60) } %>
+ <% end %>
@@ -85,7 +85,7 @@
<%= f.label :valuator_ids, t("admin.budget_investments.edit.assigned_valuators") %>
<%= f.collection_check_boxes :valuator_ids, @valuators, :id, :email do |b| %>
- - <%= b.label(title: valuator_label(b.object)) { b.check_box + truncate(b.object.description_or_email, length: 60) } %>
+ - <%= b.label(title: valuator_label(b.object)) { b.check_box + truncate(b.object.description_or_email, length: 60) } %>
<% end %>
@@ -93,11 +93,11 @@
<% if @investment.incompatible? || @investment.winner? %>
-
-
<%= t("admin.budget_investments.edit.compatibility") %>
- <%= f.check_box :incompatible,
- title: t("admin.budget_investments.edit.compatibility") %>
-
+
+
<%= t("admin.budget_investments.edit.compatibility") %>
+ <%= f.check_box :incompatible,
+ title: t("admin.budget_investments.edit.compatibility") %>
+
<% end %>
<%= t("admin.budget_investments.edit.selection") %>
diff --git a/app/views/admin/debates/show.html.erb b/app/views/admin/debates/show.html.erb
index a9cd45d3e..c1475bddd 100644
--- a/app/views/admin/debates/show.html.erb
+++ b/app/views/admin/debates/show.html.erb
@@ -39,17 +39,17 @@
- <%= t("votes.agree") %>
-
+ <%= t("votes.agree") %>
+
<%= votes_percentage("likes", @debate) %>
•
-
- <%= t("votes.disagree") %>
-
+
+ <%= t("votes.disagree") %>
+
<%= votes_percentage("dislikes", @debate) %>
diff --git a/app/views/admin/hidden_budget_investments/index.html.erb b/app/views/admin/hidden_budget_investments/index.html.erb
index 34c3201ea..f5c458eec 100644
--- a/app/views/admin/hidden_budget_investments/index.html.erb
+++ b/app/views/admin/hidden_budget_investments/index.html.erb
@@ -14,21 +14,21 @@
<%= t("admin.shared.actions") %> |
- <% @investments.each do |investment| %>
-
- |
- <%= investment.title %>
- |
-
-
- <%= wysiwyg(investment.description) %>
-
- |
-
- <%= render Admin::HiddenTableActionsComponent.new(investment) %>
- |
-
- <% end %>
+ <% @investments.each do |investment| %>
+
+ |
+ <%= investment.title %>
+ |
+
+
+ <%= wysiwyg(investment.description) %>
+
+ |
+
+ <%= render Admin::HiddenTableActionsComponent.new(investment) %>
+ |
+
+ <% end %>
diff --git a/app/views/admin/hidden_comments/index.html.erb b/app/views/admin/hidden_comments/index.html.erb
index 1cc84b84b..06aa5d583 100644
--- a/app/views/admin/hidden_comments/index.html.erb
+++ b/app/views/admin/hidden_comments/index.html.erb
@@ -13,21 +13,21 @@
<%= t("admin.shared.actions") %> |
- <% @comments.each do |comment| %>
-
- <% end %>
+ <% @comments.each do |comment| %>
+
+ <% end %>
diff --git a/app/views/admin/hidden_debates/index.html.erb b/app/views/admin/hidden_debates/index.html.erb
index 8c50d90aa..01a3989a1 100644
--- a/app/views/admin/hidden_debates/index.html.erb
+++ b/app/views/admin/hidden_debates/index.html.erb
@@ -14,21 +14,21 @@
<%= t("admin.shared.actions") %> |
- <% @debates.each do |debate| %>
-
- |
- <%= debate.title %>
- |
-
-
- <%= wysiwyg(debate.description) %>
-
- |
-
- <%= render Admin::HiddenTableActionsComponent.new(debate) %>
- |
-
- <% end %>
+ <% @debates.each do |debate| %>
+
+ |
+ <%= debate.title %>
+ |
+
+
+ <%= wysiwyg(debate.description) %>
+
+ |
+
+ <%= render Admin::HiddenTableActionsComponent.new(debate) %>
+ |
+
+ <% end %>
diff --git a/app/views/admin/hidden_proposal_notifications/index.html.erb b/app/views/admin/hidden_proposal_notifications/index.html.erb
index 227a38215..64da7faf1 100644
--- a/app/views/admin/hidden_proposal_notifications/index.html.erb
+++ b/app/views/admin/hidden_proposal_notifications/index.html.erb
@@ -14,21 +14,21 @@
<%= t("admin.shared.actions") %> |
- <% @proposal_notifications.each do |proposal_notification| %>
-
- |
- <%= proposal_notification.title %>
- |
-
-
- <%= proposal_notification.body %>
-
- |
-
- <%= render Admin::HiddenTableActionsComponent.new(proposal_notification) %>
- |
-
- <% end %>
+ <% @proposal_notifications.each do |proposal_notification| %>
+
+ |
+ <%= proposal_notification.title %>
+ |
+
+
+ <%= proposal_notification.body %>
+
+ |
+
+ <%= render Admin::HiddenTableActionsComponent.new(proposal_notification) %>
+ |
+
+ <% end %>
diff --git a/app/views/admin/hidden_proposals/index.html.erb b/app/views/admin/hidden_proposals/index.html.erb
index 83a36e329..261c17876 100644
--- a/app/views/admin/hidden_proposals/index.html.erb
+++ b/app/views/admin/hidden_proposals/index.html.erb
@@ -14,25 +14,25 @@
<%= t("admin.shared.actions") %> |
- <% @proposals.each do |proposal| %>
-
- |
- <%= proposal.title %>
- |
-
-
- <%= proposal.summary %>
- <%= wysiwyg(proposal.description) %>
- <% if proposal.video_url.present? %>
- <%= sanitize_and_auto_link proposal.video_url %>
- <% end %>
-
- |
-
- <%= render Admin::HiddenTableActionsComponent.new(proposal) %>
- |
-
- <% end %>
+ <% @proposals.each do |proposal| %>
+
+ |
+ <%= proposal.title %>
+ |
+
+
+ <%= proposal.summary %>
+ <%= wysiwyg(proposal.description) %>
+ <% if proposal.video_url.present? %>
+ <%= sanitize_and_auto_link proposal.video_url %>
+ <% end %>
+
+ |
+
+ <%= render Admin::HiddenTableActionsComponent.new(proposal) %>
+ |
+
+ <% end %>
diff --git a/app/views/admin/hidden_users/index.html.erb b/app/views/admin/hidden_users/index.html.erb
index 9f31bdd7e..324e17082 100644
--- a/app/views/admin/hidden_users/index.html.erb
+++ b/app/views/admin/hidden_users/index.html.erb
@@ -13,23 +13,23 @@
<%= t("admin.shared.actions") %> |
- <% @users.each do |user| %>
-
- |
- <%= link_to user.name, admin_hidden_user_path(user) %>
- |
+ <% @users.each do |user| %>
+
+ |
+ <%= link_to user.name, admin_hidden_user_path(user) %>
+ |
-
- <%= render Admin::HiddenTableActionsComponent.new(user) %>
- |
-
- <% end %>
+
+ <%= render Admin::HiddenTableActionsComponent.new(user) %>
+ |
+
+ <% end %>
<%= paginate @users %>
<% else %>
-
+
<%= t("admin.hidden_users.index.no_hidden_users") %>
<% end %>
diff --git a/app/views/admin/legislation/draft_versions/index.html.erb b/app/views/admin/legislation/draft_versions/index.html.erb
index 3abd526d1..60812ef66 100644
--- a/app/views/admin/legislation/draft_versions/index.html.erb
+++ b/app/views/admin/legislation/draft_versions/index.html.erb
@@ -29,31 +29,31 @@
- <% @process.draft_versions.each do |draft_version| %>
-
- |
- <%= link_to draft_version.title, edit_admin_legislation_process_draft_version_path(@process, draft_version) %>
- |
- <%= draft_version.created_at.to_date %> |
-
- <% if draft_version.status == "draft" %>
- <%= Legislation::DraftVersion.human_attribute_name(:status_draft) %>
- <%= link_to "(#{t("admin.legislation.draft_versions.index.preview")})",
- legislation_process_draft_version_path(@process, draft_version) %>
- <% else %>
- <%= Legislation::DraftVersion.human_attribute_name(:status_published) %>
- <% end %>
- |
- <%= draft_version.total_comments %> |
-
- <% if draft_version.final_version %>
-
- <% else %>
-
- <% end %>
- |
-
- <% end %>
+ <% @process.draft_versions.each do |draft_version| %>
+
+ |
+ <%= link_to draft_version.title, edit_admin_legislation_process_draft_version_path(@process, draft_version) %>
+ |
+ <%= draft_version.created_at.to_date %> |
+
+ <% if draft_version.status == "draft" %>
+ <%= Legislation::DraftVersion.human_attribute_name(:status_draft) %>
+ <%= link_to "(#{t("admin.legislation.draft_versions.index.preview")})",
+ legislation_process_draft_version_path(@process, draft_version) %>
+ <% else %>
+ <%= Legislation::DraftVersion.human_attribute_name(:status_published) %>
+ <% end %>
+ |
+ <%= draft_version.total_comments %> |
+
+ <% if draft_version.final_version %>
+
+ <% else %>
+
+ <% end %>
+ |
+
+ <% end %>
<% end %>
diff --git a/app/views/admin/legislation/questions/index.html.erb b/app/views/admin/legislation/questions/index.html.erb
index 7593750e7..213be8b6d 100644
--- a/app/views/admin/legislation/questions/index.html.erb
+++ b/app/views/admin/legislation/questions/index.html.erb
@@ -18,7 +18,7 @@
<% if @process.questions.any? %>
-
+
| <%= t("admin.legislation.questions.table.title") %> |
<%= t("admin.legislation.questions.table.question_options") %> |
@@ -27,22 +27,22 @@
- <% @process.questions.each do |question| %>
-
- |
- <%= link_to question.title, edit_admin_legislation_process_question_path(@process, question) %>
- |
-
-
- <% question.question_options.each do |question_option| %>
- - <%= "#{question_option.value} (#{question_option.answers_count})" %>
- <% end %>
-
- |
- <%= question.answers_count %> |
- <%= link_to question.comments.count, legislation_process_question_path(@process, question, anchor: "comments") %> |
-
- <% end %>
+ <% @process.questions.each do |question| %>
+
+ |
+ <%= link_to question.title, edit_admin_legislation_process_question_path(@process, question) %>
+ |
+
+
+ <% question.question_options.each do |question_option| %>
+ - <%= "#{question_option.value} (#{question_option.answers_count})" %>
+ <% end %>
+
+ |
+ <%= question.answers_count %> |
+ <%= link_to question.comments.count, legislation_process_question_path(@process, question, anchor: "comments") %> |
+
+ <% end %>
<% end %>
diff --git a/app/views/admin/managers/search.html.erb b/app/views/admin/managers/search.html.erb
index 3ceae0935..592d8b718 100644
--- a/app/views/admin/managers/search.html.erb
+++ b/app/views/admin/managers/search.html.erb
@@ -13,15 +13,15 @@
<%= t("admin.shared.actions") %> |
- <% @users.each do |user| %>
-
- | <%= user.name %> |
- <%= user.email %> |
-
- <%= render Admin::Roles::TableActionsComponent.new(user.manager || user.build_manager) %>
- |
-
- <% end %>
+ <% @users.each do |user| %>
+
+ | <%= user.name %> |
+ <%= user.email %> |
+
+ <%= render Admin::Roles::TableActionsComponent.new(user.manager || user.build_manager) %>
+ |
+
+ <% end %>
<% else %>
diff --git a/app/views/admin/moderators/search.html.erb b/app/views/admin/moderators/search.html.erb
index 04f60f79f..0a472b406 100644
--- a/app/views/admin/moderators/search.html.erb
+++ b/app/views/admin/moderators/search.html.erb
@@ -13,15 +13,15 @@
<%= t("admin.shared.actions") %> |
- <% @users.each do |user| %>
-
- | <%= user.name %> |
- <%= user.email %> |
-
- <%= render Admin::Roles::TableActionsComponent.new(user.moderator || user.build_moderator) %>
- |
-
- <% end %>
+ <% @users.each do |user| %>
+
+ | <%= user.name %> |
+ <%= user.email %> |
+
+ <%= render Admin::Roles::TableActionsComponent.new(user.moderator || user.build_moderator) %>
+ |
+
+ <% end %>
<% else %>
diff --git a/app/views/admin/newsletters/index.html.erb b/app/views/admin/newsletters/index.html.erb
index 0830c09d8..3c76276d2 100644
--- a/app/views/admin/newsletters/index.html.erb
+++ b/app/views/admin/newsletters/index.html.erb
@@ -14,28 +14,28 @@
- <% @newsletters.order(created_at: :desc).each do |newsletter| %>
-
- |
- <%= newsletter.subject %>
- |
-
- <%= segment_name(newsletter.segment_recipient) %>
- |
-
- <% if newsletter.draft? %>
- <%= t("admin.newsletters.index.draft") %>
- <% else %>
- <%= l newsletter.sent_at.to_date %>
- <% end %>
- |
-
- <%= render Admin::TableActionsComponent.new(newsletter) do |actions| %>
- <%= actions.action :preview, text: t("admin.newsletters.index.preview") %>
- <% end %>
- |
-
- <% end %>
+ <% @newsletters.order(created_at: :desc).each do |newsletter| %>
+
+ |
+ <%= newsletter.subject %>
+ |
+
+ <%= segment_name(newsletter.segment_recipient) %>
+ |
+
+ <% if newsletter.draft? %>
+ <%= t("admin.newsletters.index.draft") %>
+ <% else %>
+ <%= l newsletter.sent_at.to_date %>
+ <% end %>
+ |
+
+ <%= render Admin::TableActionsComponent.new(newsletter) do |actions| %>
+ <%= actions.action :preview, text: t("admin.newsletters.index.preview") %>
+ <% end %>
+ |
+
+ <% end %>
<% else %>
diff --git a/app/views/admin/officials/search.html.erb b/app/views/admin/officials/search.html.erb
index 8c5d8d013..0313da4c9 100644
--- a/app/views/admin/officials/search.html.erb
+++ b/app/views/admin/officials/search.html.erb
@@ -8,10 +8,10 @@
- | <%= t("admin.officials.index.name") %> |
- <%= t("admin.officials.index.official_position") %> |
- <%= t("admin.officials.index.official_level") %> |
- <%= t("admin.shared.actions") %> |
+ <%= t("admin.officials.index.name") %> |
+ <%= t("admin.officials.index.official_position") %> |
+ <%= t("admin.officials.index.official_level") %> |
+ <%= t("admin.shared.actions") %> |
<% @users.each do |user| %>
diff --git a/app/views/admin/organizations/index.html.erb b/app/views/admin/organizations/index.html.erb
index 7632445be..0406852e8 100644
--- a/app/views/admin/organizations/index.html.erb
+++ b/app/views/admin/organizations/index.html.erb
@@ -21,30 +21,30 @@
<%= t("admin.shared.actions") %> |
- <% @organizations.each do |organization| %>
- <% hidden += 1 and next if organization.user.nil? %>
-
- | <%= organization.name %> |
- <%= organization.email %> |
- <%= organization.phone_number %> |
- <%= organization.responsible_name %> |
-
- <% if organization.verified? %>
-
- <%= t("admin.organizations.index.verified") %>
- <% elsif organization.rejected? %>
-
- <%= t("admin.organizations.index.rejected") %>
- <% else %>
-
- <%= t("admin.organizations.index.pending") %>
- <% end %>
- |
-
- <%= render Admin::Organizations::TableActionsComponent.new(organization) %>
- |
-
- <% end %>
+ <% @organizations.each do |organization| %>
+ <% hidden += 1 and next if organization.user.nil? %>
+
+ | <%= organization.name %> |
+ <%= organization.email %> |
+ <%= organization.phone_number %> |
+ <%= organization.responsible_name %> |
+
+ <% if organization.verified? %>
+
+ <%= t("admin.organizations.index.verified") %>
+ <% elsif organization.rejected? %>
+
+ <%= t("admin.organizations.index.rejected") %>
+ <% else %>
+
+ <%= t("admin.organizations.index.pending") %>
+ <% end %>
+ |
+
+ <%= render Admin::Organizations::TableActionsComponent.new(organization) %>
+ |
+
+ <% end %>
diff --git a/app/views/admin/organizations/search.html.erb b/app/views/admin/organizations/search.html.erb
index f19ee42c6..73c476f92 100644
--- a/app/views/admin/organizations/search.html.erb
+++ b/app/views/admin/organizations/search.html.erb
@@ -16,29 +16,29 @@
<%= t("admin.shared.actions") %> |
- <% @organizations.each do |organization| %>
-
- | <%= organization.name %> |
- <%= organization.email %> |
- <%= organization.phone_number %> |
- <%= organization.responsible_name %> |
-
- <% if organization.verified? %>
-
- <%= t("admin.organizations.index.verified") %>
- <% elsif organization.rejected? %>
-
- <%= t("admin.organizations.index.rejected") %>
- <% else %>
-
- <%= t("admin.organizations.index.pending") %>
- <% end %>
- |
-
- <%= render Admin::Organizations::TableActionsComponent.new(organization) %>
- |
-
- <% end %>
+ <% @organizations.each do |organization| %>
+
+ | <%= organization.name %> |
+ <%= organization.email %> |
+ <%= organization.phone_number %> |
+ <%= organization.responsible_name %> |
+
+ <% if organization.verified? %>
+
+ <%= t("admin.organizations.index.verified") %>
+ <% elsif organization.rejected? %>
+
+ <%= t("admin.organizations.index.rejected") %>
+ <% else %>
+
+ <%= t("admin.organizations.index.pending") %>
+ <% end %>
+ |
+
+ <%= render Admin::Organizations::TableActionsComponent.new(organization) %>
+ |
+
+ <% end %>
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 5bed2f427..b0524fab1 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
@@ -16,14 +16,14 @@
<% @booths.each do |booth| %>
-
- |
- <%= booth.name %>
- |
-
- <%= booth.location %>
- |
-
+
+ |
+ <%= booth.name %>
+ |
+
+ <%= booth.location %>
+ |
+
<% end %>
diff --git a/app/views/admin/poll/booth_assignments/manage.html.erb b/app/views/admin/poll/booth_assignments/manage.html.erb
index 63ef6c49a..eac0dbbba 100644
--- a/app/views/admin/poll/booth_assignments/manage.html.erb
+++ b/app/views/admin/poll/booth_assignments/manage.html.erb
@@ -15,11 +15,11 @@
<%= t("admin.actions.actions") %> |
- <% @booths.each do |booth| %>
-
- <%= render "booth_assignment", booth: booth, booth_assignment: booth.assignment_on_poll(@poll) %>
-
- <% end %>
+ <% @booths.each do |booth| %>
+
+ <%= render "booth_assignment", booth: booth, booth_assignment: booth.assignment_on_poll(@poll) %>
+
+ <% end %>
diff --git a/app/views/admin/poll/booths/index.html.erb b/app/views/admin/poll/booths/index.html.erb
index 37937d89e..0d38726f7 100644
--- a/app/views/admin/poll/booths/index.html.erb
+++ b/app/views/admin/poll/booths/index.html.erb
@@ -21,9 +21,9 @@
<%= t("admin.actions.actions") %> |
- <% @booths.each do |booth| %>
- <%= render "booth", booth: booth %>
- <% end %>
+ <% @booths.each do |booth| %>
+ <%= render "booth", booth: booth %>
+ <% end %>
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 67eddef60..15c1804f5 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
@@ -16,16 +16,16 @@
<% @officers.each do |user| %>
-
- |
-
- <%= link_to user.name, by_officer_admin_poll_officer_assignments_path(@poll, officer_id: user.id) %>
-
- |
-
- <%= user.email %>
- |
-
+
+ |
+
+ <%= link_to user.name, by_officer_admin_poll_officer_assignments_path(@poll, officer_id: user.id) %>
+
+ |
+
+ <%= user.email %>
+ |
+
<% end %>
diff --git a/app/views/admin/poll/polls/_poll_header.html.erb b/app/views/admin/poll/polls/_poll_header.html.erb
index fafabcbfc..155a8b901 100644
--- a/app/views/admin/poll/polls/_poll_header.html.erb
+++ b/app/views/admin/poll/polls/_poll_header.html.erb
@@ -19,8 +19,8 @@
<%= t("admin.polls.index.geozone_restricted") %>
- <%= @poll.geozones.pluck(:name).to_sentence %>
-
+ <%= @poll.geozones.pluck(:name).to_sentence %>
+
<% end %>
diff --git a/app/views/admin/poll/shifts/_search_officers_results.html.erb b/app/views/admin/poll/shifts/_search_officers_results.html.erb
index 8e2eed699..927ffadcf 100644
--- a/app/views/admin/poll/shifts/_search_officers_results.html.erb
+++ b/app/views/admin/poll/shifts/_search_officers_results.html.erb
@@ -15,22 +15,22 @@
<% @officers.each do |user| %>
-
- |
- <%= user.name %>
- |
-
- <%= user.email %>
- |
-
- <%= render Admin::TableActionsComponent.new(
+ |
+ |
+ <%= user.name %>
+ |
+
+ <%= user.email %>
+ |
+
+ <%= render Admin::TableActionsComponent.new(
user,
actions: [:edit],
edit_text: t("admin.poll_shifts.new.edit_shifts"),
edit_path: new_admin_booth_shift_path(officer_id: user.poll_officer.id)
) %>
- |
-
+
+
<% end %>
diff --git a/app/views/admin/site_customization/content_blocks/index.html.erb b/app/views/admin/site_customization/content_blocks/index.html.erb
index 05cda15a7..9fa4bfd8e 100644
--- a/app/views/admin/site_customization/content_blocks/index.html.erb
+++ b/app/views/admin/site_customization/content_blocks/index.html.erb
@@ -32,28 +32,28 @@
- <% @content_blocks.each do |content_block| %>
-
- | <%= "#{content_block.name} (#{content_block.locale})" %> |
- <%= raw content_block.body %> |
-
- <%= render Admin::TableActionsComponent.new(content_block) %>
- |
-
- <% end %>
- <% @headings_content_blocks.each do |content_block| %>
-
- | <%= "#{content_block.name} (#{content_block.locale})" %> |
- <%= raw content_block.body %> |
-
- <%= render Admin::TableActionsComponent.new(
+ <% @content_blocks.each do |content_block| %>
+ |
+ | <%= "#{content_block.name} (#{content_block.locale})" %> |
+ <%= raw content_block.body %> |
+
+ <%= render Admin::TableActionsComponent.new(content_block) %>
+ |
+
+ <% end %>
+ <% @headings_content_blocks.each do |content_block| %>
+
+ | <%= "#{content_block.name} (#{content_block.locale})" %> |
+ <%= raw content_block.body %> |
+
+ <%= render Admin::TableActionsComponent.new(
content_block,
edit_path: admin_site_customization_edit_heading_content_block_path(content_block),
destroy_path: admin_site_customization_delete_heading_content_block_path(content_block)
) %>
- |
-
- <% end %>
+
+
+ <% end %>
<% else %>
diff --git a/app/views/admin/stats/show.html.erb b/app/views/admin/stats/show.html.erb
index 2879900aa..0c5224bd2 100644
--- a/app/views/admin/stats/show.html.erb
+++ b/app/views/admin/stats/show.html.erb
@@ -56,7 +56,9 @@
<%= t "admin.stats.show.summary.proposal_votes" %>
- <%= number_with_delimiter(@proposal_votes) %>
+
+ <%= number_with_delimiter(@proposal_votes) %>
+
<%= t "admin.stats.show.summary.debate_votes" %>
diff --git a/app/views/admin/system_emails/index.html.erb b/app/views/admin/system_emails/index.html.erb
index beddb8f7d..ea3545e30 100644
--- a/app/views/admin/system_emails/index.html.erb
+++ b/app/views/admin/system_emails/index.html.erb
@@ -9,41 +9,41 @@
- <% @system_emails.each do |system_email_title, system_email_actions| %>
-
- |
- <%= t("admin.system_emails.#{system_email_title}.title") %>
- |
-
- <%= t("admin.system_emails.#{system_email_title}.description") %>
- |
-
- <%= render Admin::TableActionsComponent.new(system_email_title, actions: []) do |actions| %>
- <% if system_email_actions.include?("view") %>
- <%= actions.action(:show,
- text: t("admin.shared.view"),
- path: admin_system_email_view_path(system_email_title)) %>
- <% end %>
+ <% @system_emails.each do |system_email_title, system_email_actions| %>
+ |
+ |
+ <%= t("admin.system_emails.#{system_email_title}.title") %>
+ |
+
+ <%= t("admin.system_emails.#{system_email_title}.description") %>
+ |
+
+ <%= render Admin::TableActionsComponent.new(system_email_title, actions: []) do |actions| %>
+ <% if system_email_actions.include?("view") %>
+ <%= actions.action(:show,
+ text: t("admin.shared.view"),
+ path: admin_system_email_view_path(system_email_title)) %>
+ <% end %>
- <% if system_email_actions.include?("preview_pending") %>
- <%= actions.action(:preview_pending,
- text: t("admin.system_emails.preview_pending.action"),
- path: admin_system_email_preview_pending_path(system_email_title)) %>
- <%= actions.action(:send_pending,
- text: t("admin.system_emails.preview_pending.send_pending"),
- path: admin_system_email_send_pending_path(system_email_title),
- method: :put) %>
- <% end %>
+ <% if system_email_actions.include?("preview_pending") %>
+ <%= actions.action(:preview_pending,
+ text: t("admin.system_emails.preview_pending.action"),
+ path: admin_system_email_preview_pending_path(system_email_title)) %>
+ <%= actions.action(:send_pending,
+ text: t("admin.system_emails.preview_pending.send_pending"),
+ path: admin_system_email_send_pending_path(system_email_title),
+ method: :put) %>
+ <% end %>
- <% if system_email_actions.include?("edit_info") %>
-
- <%= t("admin.system_emails.edit_info") %>
- <%= "app/views/mailer/#{system_email_title}.html.erb" %>
-
+ <% if system_email_actions.include?("edit_info") %>
+
+ <%= t("admin.system_emails.edit_info") %>
+ <%= "app/views/mailer/#{system_email_title}.html.erb" %>
+
+ <% end %>
<% end %>
- <% end %>
- |
-
- <% end %>
+
+
+ <% end %>
diff --git a/app/views/admin/tags/index.html.erb b/app/views/admin/tags/index.html.erb
index 8c0262f08..9f4706bd3 100644
--- a/app/views/admin/tags/index.html.erb
+++ b/app/views/admin/tags/index.html.erb
@@ -18,22 +18,22 @@
<%= t("admin.actions.actions") %> |
- <% @tags.each do |tag| %>
-
- |
- <%= form_for(tag,
- url: admin_tag_path(tag),
- as: :tag,
- html: { id: "edit_tag_#{tag.id}" }) do |f| %>
+ <% @tags.each do |tag| %>
+ |
+ |
+ <%= form_for(tag,
+ url: admin_tag_path(tag),
+ as: :tag,
+ html: { id: "edit_tag_#{tag.id}" }) do |f| %>
- <%= tag.name %>
- <% end %>
- |
-
- <%= render Admin::TableActionsComponent.new(tag, actions: [:destroy]) %>
- |
-
- <% end %>
+ <%= tag.name %>
+ <% end %>
+
+
+ <%= render Admin::TableActionsComponent.new(tag, actions: [:destroy]) %>
+ |
+
+ <% end %>
diff --git a/app/views/budgets/executions/show.html.erb b/app/views/budgets/executions/show.html.erb
index 4db70fb8f..0c3f4a08e 100644
--- a/app/views/budgets/executions/show.html.erb
+++ b/app/views/budgets/executions/show.html.erb
@@ -1,10 +1,10 @@
<% provide :title, t("budgets.executions.page_title", budget: @budget.name) %>
<% 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") %>
+ <%= render "shared/social_media_meta_tags",
+ 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/_author_actions.html.erb b/app/views/budgets/investments/_author_actions.html.erb
index 92a4aa863..cd65a6ca8 100644
--- a/app/views/budgets/investments/_author_actions.html.erb
+++ b/app/views/budgets/investments/_author_actions.html.erb
@@ -7,12 +7,12 @@
edit_budget_investment_path(investment.budget, investment),
method: :get, class: "button hollow expanded" %>
<% else %>
- <%= link_to image_path(investment.image),
- method: :delete,
- class: "button hollow alert expanded" do %>
-
- <%= t("images.remove_image") %>
- <% end %>
+ <%= link_to image_path(investment.image),
+ method: :delete,
+ class: "button hollow alert expanded" do %>
+
+ <%= t("images.remove_image") %>
+ <% end %>
<% end %>
<% end %>
diff --git a/app/views/budgets/investments/_investment_show.html.erb b/app/views/budgets/investments/_investment_show.html.erb
index 10e1fd18c..b811c1ed8 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) %>
+ <%= 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) %>
<% end %>
@@ -120,6 +120,6 @@
<%= render "communities/access_button", community: investment.community %>
-
+
diff --git a/app/views/budgets/results/_results_table.html.erb b/app/views/budgets/results/_results_table.html.erb
index 75adcbe9f..9647c33d5 100644
--- a/app/views/budgets/results/_results_table.html.erb
+++ b/app/views/budgets/results/_results_table.html.erb
@@ -30,40 +30,40 @@
<% amount_available = heading_price %>
<% investments.each do |investment| %>
- "
- style="<%= investment.winner? ? "" : "display: none" %>">
-
- <% if investment.winner? %>
-
-
- <%= t("budgets.results.accepted") %>
-
+ "
+ style="<%= investment.winner? ? "" : "display: none" %>">
+ |
+ <% if investment.winner? %>
+
+
+ <%= t("budgets.results.accepted") %>
- <% else %>
-
-
- <%= t("budgets.results.discarded") %>
-
+
+ <% else %>
+
+
+ <%= t("budgets.results.discarded") %>
- <% end %>
- <%= link_to investment.title, budget_investment_path(@budget, investment) %>
- |
-
- <%= investment.ballot_lines_count %>
- |
- <% if @budget.show_money? %>
-
- <%= @budget.formatted_amount(investment.price) %>
- |
- <% if results_type == :compatible %>
-
- <%= @budget.formatted_amount(amount_available - investment.price) %>
- <% amount_available -= investment.price if investment.winner? %>
- |
- <% end %>
+
<% end %>
+ <%= link_to investment.title, budget_investment_path(@budget, investment) %>
+
+
+ <%= investment.ballot_lines_count %>
+ |
+ <% if @budget.show_money? %>
+
+ <%= @budget.formatted_amount(investment.price) %>
+ |
+ <% if results_type == :compatible %>
+
+ <%= @budget.formatted_amount(amount_available - investment.price) %>
+ <% amount_available -= investment.price if investment.winner? %>
+ |
+ <% end %>
+ <% end %>
<% end %>
|
diff --git a/app/views/budgets/results/show.html.erb b/app/views/budgets/results/show.html.erb
index 7ce618d88..8428a0f2e 100644
--- a/app/views/budgets/results/show.html.erb
+++ b/app/views/budgets/results/show.html.erb
@@ -1,10 +1,10 @@
<% provide :title, t("budgets.results.page_title", budget: @budget.name) %>
<% 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") %>
+ <%= render "shared/social_media_meta_tags",
+ 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 03c6cd974..3174e0527 100644
--- a/app/views/budgets/stats/show.html.erb
+++ b/app/views/budgets/stats/show.html.erb
@@ -1,9 +1,9 @@
<% provide :title, t("stats.budgets.page_title", budget: @budget.name) %>
<% 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") %>
+ <%= render "shared/social_media_meta_tags",
+ social_url: budget_stats_url(@budget),
+ social_title: @budget.name,
+ social_description: @budget.description_for_phase("finished") %>
<% end %>
@@ -40,10 +40,10 @@
<% end %>
- <%= t("stats.budgets.participatory_disclaimer") %>
+ <%= t("stats.budgets.participatory_disclaimer") %>
- <%= t("stats.budgets.heading_disclaimer") %>
+ <%= t("stats.budgets.heading_disclaimer") %>
diff --git a/app/views/communities/_participant.html.erb b/app/views/communities/_participant.html.erb
index 746ec42c7..8ee84598d 100644
--- a/app/views/communities/_participant.html.erb
+++ b/app/views/communities/_participant.html.erb
@@ -12,7 +12,7 @@
<% if author?(@community, participant) %>
•
- <%= t("comments.comment.author") %>
+ <%= t("comments.comment.author") %>
<% end %>
diff --git a/app/views/dashboard/poster/index.html.erb b/app/views/dashboard/poster/index.html.erb
index e8e7112cd..3abc66590 100644
--- a/app/views/dashboard/poster/index.html.erb
+++ b/app/views/dashboard/poster/index.html.erb
@@ -25,9 +25,9 @@
<%= t("dashboard.poster.index.support") %>
- <%= image_tag "quote_before_blue.png", alt: "" %>
-
<%= proposal.title %>
- <%= image_tag "quote_after_blue.png", alt: "" %>
+ <%= image_tag "quote_before_blue.png", alt: "" %>
+
<%= proposal.title %>
+ <%= image_tag "quote_after_blue.png", alt: "" %>
diff --git a/app/views/devise/confirmations/new.html.erb b/app/views/devise/confirmations/new.html.erb
index 32750ef42..bd421620f 100644
--- a/app/views/devise/confirmations/new.html.erb
+++ b/app/views/devise/confirmations/new.html.erb
@@ -9,8 +9,8 @@
<%= f.email_field :email, autofocus: true, value: (resource.pending_reconfirmation? ? resource.unconfirmed_email : resource.email) %>
<% if @requires_password %>
-
<%= f.password_field :password %>
-
<%= f.password_field :password_confirmation %>
+
<%= f.password_field :password %>
+
<%= f.password_field :password_confirmation %>
<% end %>
<%= hidden_field_tag :confirmation_token, @confirmation_token %>
diff --git a/app/views/layouts/dashboard/_proposal_totals.html.erb b/app/views/layouts/dashboard/_proposal_totals.html.erb
index b8ffa94dd..b1f5b7a40 100644
--- a/app/views/layouts/dashboard/_proposal_totals.html.erb
+++ b/app/views/layouts/dashboard/_proposal_totals.html.erb
@@ -38,7 +38,7 @@
" aria-valuemax="100">
-
+
diff --git a/app/views/layouts/mailer.html.erb b/app/views/layouts/mailer.html.erb
index c5dcf1fd6..e8ed007d0 100644
--- a/app/views/layouts/mailer.html.erb
+++ b/app/views/layouts/mailer.html.erb
@@ -1,22 +1,22 @@
>
-
- <%= t("mailers.title") %>
-
-
-
-
+
+ <%= t("mailers.title") %>
+
+
+
+
- <%= render "layouts/mailer_header" %>
+ <%= render "layouts/mailer_header" %>
-
+
- <%= render "layouts/mailer_footer" %>
-
+ <%= render "layouts/mailer_footer" %>
+
diff --git a/app/views/legislation/annotations/_comments_box.html.erb b/app/views/legislation/annotations/_comments_box.html.erb
index 8b06813d9..228394625 100644
--- a/app/views/legislation/annotations/_comments_box.html.erb
+++ b/app/views/legislation/annotations/_comments_box.html.erb
@@ -11,7 +11,7 @@
diff --git a/app/views/legislation/proposals/show.html.erb b/app/views/legislation/proposals/show.html.erb
index 7ef241fac..f3e6fea5e 100644
--- a/app/views/legislation/proposals/show.html.erb
+++ b/app/views/legislation/proposals/show.html.erb
@@ -1,10 +1,10 @@
<% provide :title, @proposal.title %>
<% content_for :meta_description do %><%= @proposal.summary %><% end %>
<% provide :social_media_meta_tags do %>
-<%= render "shared/social_media_meta_tags",
- social_url: legislation_process_proposal_url(process_id: @process),
- social_title: @proposal.title,
- social_description: @proposal.summary %>
+ <%= render "shared/social_media_meta_tags",
+ social_url: legislation_process_proposal_url(process_id: @process),
+ social_title: @proposal.title,
+ social_description: @proposal.summary %>
<% end %>
<% content_for :canonical do %>
<%= render "shared/canonical", href: legislation_process_proposal_url(process_id: @process) %>
diff --git a/app/views/officing/polls/final.html.erb b/app/views/officing/polls/final.html.erb
index 01f9f45fd..121ccf9b8 100644
--- a/app/views/officing/polls/final.html.erb
+++ b/app/views/officing/polls/final.html.erb
@@ -19,9 +19,9 @@
officing_poll_ballot_sheets_path(poll),
class: "button" %>
- <%= link_to t("officing.polls.final.add_results"),
- new_officing_poll_ballot_sheet_path(poll),
- class: "button hollow" %>
+ <%= link_to t("officing.polls.final.add_results"),
+ new_officing_poll_ballot_sheet_path(poll),
+ class: "button hollow" %>
<% else %>
<%= link_to t("officing.polls.final.add_results"),
new_officing_poll_result_path(poll),
diff --git a/app/views/officing/results/new.html.erb b/app/views/officing/results/new.html.erb
index aba3e17da..c53ff92d5 100644
--- a/app/views/officing/results/new.html.erb
+++ b/app/views/officing/results/new.html.erb
@@ -81,7 +81,7 @@
<%= results_by_booth[booth_assignment].first.booth_assignment.booth.name %>
- <%= link_to t("officing.results.new.see_results"), officing_poll_results_path(@poll, date: l(date), booth_assignment_id: booth_assignment) %>
+ <%= link_to t("officing.results.new.see_results"), officing_poll_results_path(@poll, date: l(date), booth_assignment_id: booth_assignment) %>
|
<% end %>
diff --git a/app/views/officing/voters/_can_vote.html.erb b/app/views/officing/voters/_can_vote.html.erb
index c866b6562..8a76532bd 100644
--- a/app/views/officing/voters/_can_vote.html.erb
+++ b/app/views/officing/voters/_can_vote.html.erb
@@ -9,10 +9,10 @@
method: :post,
remote: true,
html: { id: "new_officing_voter" } do |f| %>
- <%= f.hidden_field :poll_id, value: poll.id %>
- <%= f.hidden_field :user_id, value: @user.id %>
- <%= f.submit t("officing.voters.show.submit"),
- class: "button success",
- data: { disable_with: t("officing.voters.can_vote.submit_disable_with") } %>
+ <%= f.hidden_field :poll_id, value: poll.id %>
+ <%= f.hidden_field :user_id, value: @user.id %>
+ <%= f.submit t("officing.voters.show.submit"),
+ class: "button success",
+ data: { disable_with: t("officing.voters.can_vote.submit_disable_with") } %>
<% end %>
diff --git a/app/views/officing/voters/new.html.erb b/app/views/officing/voters/new.html.erb
index e88e86d85..bbe35d74c 100644
--- a/app/views/officing/voters/new.html.erb
+++ b/app/views/officing/voters/new.html.erb
@@ -13,18 +13,18 @@
<% @polls.each do |poll| %>
-
- |
- <%= poll.name %>
- |
- <% if poll.votable_by?(@user) %>
- <%= render "can_vote", poll: poll %>
- <% elsif poll.voted_by?(@user) || poll.user_has_an_online_ballot?(@user) %>
- <%= render "already_voted" %>
- <% else %>
- <%= render "cannot_vote" %>
- <% end %>
-
+
+ |
+ <%= poll.name %>
+ |
+ <% if poll.votable_by?(@user) %>
+ <%= render "can_vote", poll: poll %>
+ <% elsif poll.voted_by?(@user) || poll.user_has_an_online_ballot?(@user) %>
+ <%= render "already_voted" %>
+ <% else %>
+ <%= render "cannot_vote" %>
+ <% end %>
+
<% end %>
diff --git a/app/views/organizations/registrations/new.html.erb b/app/views/organizations/registrations/new.html.erb
index 2bcc9e938..a27c8c005 100644
--- a/app/views/organizations/registrations/new.html.erb
+++ b/app/views/organizations/registrations/new.html.erb
@@ -1,10 +1,10 @@
<% provide :title, t("devise_views.organizations.registrations.new.title") %>
<%= t("devise_views.organizations.registrations.new.title") %>
- <%= form_for(resource, as: :user, url: organization_registration_path) do |f| %>
- <%= render "shared/errors", resource: resource %>
-
-
+<%= form_for(resource, as: :user, url: organization_registration_path) do |f| %>
+ <%= render "shared/errors", resource: resource %>
+
+
<%= f.fields_for :organization do |fo| %>
<%= fo.text_field :name, autofocus: true, maxlength: Organization.name_max_length %>
diff --git a/app/views/proposals/retire_form.html.erb b/app/views/proposals/retire_form.html.erb
index e22d80255..fef9e5c6d 100644
--- a/app/views/proposals/retire_form.html.erb
+++ b/app/views/proposals/retire_form.html.erb
@@ -7,7 +7,7 @@
<%= link_to @proposal.title, @proposal %>
- <%= t("proposals.retire_form.warning") %>
+ <%= t("proposals.retire_form.warning") %>
<%= render "shared/globalize_locales", resource: @proposal, manage_languages: false %>
diff --git a/app/views/proposals/share.html.erb b/app/views/proposals/share.html.erb
index 7a1a3bb64..d4556b84e 100644
--- a/app/views/proposals/share.html.erb
+++ b/app/views/proposals/share.html.erb
@@ -1,9 +1,9 @@
<% provide :title, @proposal.title %>
<% 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 %>
+ <%= render "shared/social_media_meta_tags",
+ 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) %>
diff --git a/app/views/shared/_author_info.html.erb b/app/views/shared/_author_info.html.erb
index 8b9f21b89..eea02a8a2 100644
--- a/app/views/shared/_author_info.html.erb
+++ b/app/views/shared/_author_info.html.erb
@@ -1,12 +1,12 @@
<% if resource.author.hidden? || resource.author.erased? %>
- <%= t("shared.author_info.author_deleted") %>
+ <%= t("shared.author_info.author_deleted") %>
<% else %>
<%= render Shared::AvatarComponent.new(resource.author, size: 32, class: "author-photo") %>
- <%= link_to resource.author.name, user_path(resource.author) %>
+ <%= link_to resource.author.name, user_path(resource.author) %>
<% if resource.respond_to?(:association_name) && resource.association_name.present? %>
diff --git a/app/views/shared/_filter_subnav.html.erb b/app/views/shared/_filter_subnav.html.erb
index ab9161ef6..9140244a9 100644
--- a/app/views/shared/_filter_subnav.html.erb
+++ b/app/views/shared/_filter_subnav.html.erb
@@ -3,7 +3,9 @@
<% valid_filters.each do |filter| %>
<% if current_filter == filter %>
-
<%= t("#{i18n_namespace}.filters.#{filter}") %>
+
+ <%= t("#{i18n_namespace}.filters.#{filter}") %>
+
<% else %>
<%= link_to t("#{i18n_namespace}.filters.#{filter}"),
current_path_with_query_params(filter: filter, page: 1) %>
diff --git a/app/views/valuation/budget_investments/_dossier.html.erb b/app/views/valuation/budget_investments/_dossier.html.erb
index e1d5c351a..b17442b4d 100644
--- a/app/views/valuation/budget_investments/_dossier.html.erb
+++ b/app/views/valuation/budget_investments/_dossier.html.erb
@@ -2,12 +2,12 @@
<%= t("valuation.budget_investments.show.price") %>
- (<%= t("valuation.budget_investments.show.currency") %>):
+ (<%= t("valuation.budget_investments.show.currency") %>):
<% if @investment.price.present? %>
<%= @investment.price %>
<% else %>
- <%= t("valuation.budget_investments.show.undefined") %>
+ <%= t("valuation.budget_investments.show.undefined") %>
<% end %>
@@ -20,7 +20,7 @@
<% if @investment.price_first_year.present? %>
<%= @investment.price_first_year %>
<% else %>
- <%= t("valuation.budget_investments.show.undefined") %>
+ <%= t("valuation.budget_investments.show.undefined") %>
<% end %>
<% end %>
diff --git a/app/views/valuation/budget_investments/_dossier_form.html.erb b/app/views/valuation/budget_investments/_dossier_form.html.erb
index 5f2f80f80..538b26c88 100644
--- a/app/views/valuation/budget_investments/_dossier_form.html.erb
+++ b/app/views/valuation/budget_investments/_dossier_form.html.erb
@@ -6,21 +6,21 @@
diff --git a/app/views/verification/residence/new.html.erb b/app/views/verification/residence/new.html.erb
index 9909d41af..f8d97ee39 100644
--- a/app/views/verification/residence/new.html.erb
+++ b/app/views/verification/residence/new.html.erb
@@ -33,25 +33,25 @@
- <%= f.select :document_type, document_types, prompt: "" %>
+ <%= f.select :document_type, document_types, prompt: "" %>
-
- <%= f.label :document_number, t("verification.residence.new.document_number") %>
-
+
+ <%= f.label :document_number, t("verification.residence.new.document_number") %>
+
-
+
-
- <%= sanitize(t("verification.residence.new.document_number_help_text")) %>
-
+
+ <%= sanitize(t("verification.residence.new.document_number_help_text")) %>
+
- <%= f.text_field :document_number, label: false %>
+ <%= f.text_field :document_number, label: false %>
diff --git a/app/views/verification/verified_user/show.html.erb b/app/views/verification/verified_user/show.html.erb
index 13dc2924d..c215421fe 100644
--- a/app/views/verification/verified_user/show.html.erb
+++ b/app/views/verification/verified_user/show.html.erb
@@ -13,8 +13,8 @@
<% @verified_users.each do |verified_user| %>
<% if verified_user.email.present? %>
- <%= mask_email(verified_user.email) %>
- <%= render "form", url: email_path, verified_user: verified_user %>
+ <%= mask_email(verified_user.email) %>
+ <%= render "form", url: email_path, verified_user: verified_user %>
<% end %>
<% end %>
diff --git a/spec/components/admin/stats/sdg/goal_component_spec.rb b/spec/components/admin/stats/sdg/goal_component_spec.rb
index c3af91bb4..68b129ede 100644
--- a/spec/components/admin/stats/sdg/goal_component_spec.rb
+++ b/spec/components/admin/stats/sdg/goal_component_spec.rb
@@ -15,15 +15,15 @@ describe Admin::Stats::SDG::GoalComponent do
render_inline component
- expect(page).to have_text "Proposals 3"
- expect(page).to have_text "Polls 2"
- expect(page).to have_text "Debates 1"
+ expect(page).to have_text "Proposals 3", normalize_ws: true
+ expect(page).to have_text "Polls 2", normalize_ws: true
+ expect(page).to have_text "Debates 1", normalize_ws: true
expect("Current budget").to appear_before("Past year budget")
- expect(page).to have_text "Investment projects sent 2"
- expect(page).to have_text "Winner investment projects 0"
- expect(page).to have_text "Approved amount $0"
- expect(page).to have_text "Investment projects sent 1"
- expect(page).to have_text "Winner investment projects 1"
- expect(page).to have_text "Approved amount $1,000"
+ expect(page).to have_text "Investment projects sent 2", normalize_ws: true
+ expect(page).to have_text "Winner investment projects 0", normalize_ws: true
+ expect(page).to have_text "Approved amount $0", normalize_ws: true
+ expect(page).to have_text "Investment projects sent 1", normalize_ws: true
+ expect(page).to have_text "Winner investment projects 1", normalize_ws: true
+ expect(page).to have_text "Approved amount $1,000", normalize_ws: true
end
end