From 6fd5fefeb30a251af369b83466c9e183a22bb792 Mon Sep 17 00:00:00 2001 From: Quentin Champenois <26109239+Quentinchampenois@users.noreply.github.com> Date: Tue, 10 Oct 2023 13:57:47 +0200 Subject: [PATCH] fix: Hotfix remove endorsement list from proposals (#39) * fix: Override proposals show view * doc: Add entry to OVERLOADS.md * fix: Remove endorsers list in proposal show view * fix: Ignore false positive missing keys for proposal --- OVERLOADS.md | 3 + .../decidim/proposals/proposals/show.html.erb | 141 ++++++++++++++++++ config/i18n-tasks.yml | 1 + 3 files changed, 145 insertions(+) create mode 100644 app/views/decidim/proposals/proposals/show.html.erb diff --git a/OVERLOADS.md b/OVERLOADS.md index 86198a3b..30253f5f 100644 --- a/OVERLOADS.md +++ b/OVERLOADS.md @@ -1,5 +1,8 @@ # Overrides +## Remove endorsers list from proposals +* `app/views/decidim/proposals/proposals/show.html.erb` + ## 28c8d74 - Add basic tests to reference package (#1), 2021-07-26 * `lib/extends/commands/decidim/admin/create_participatory_space_private_user_extends.rb` * `lib/extends/commands/decidim/admin/impersonate_user_extends.rb` \ No newline at end of file diff --git a/app/views/decidim/proposals/proposals/show.html.erb b/app/views/decidim/proposals/proposals/show.html.erb new file mode 100644 index 00000000..b93bc68d --- /dev/null +++ b/app/views/decidim/proposals/proposals/show.html.erb @@ -0,0 +1,141 @@ +<% add_decidim_meta_tags({ + description: present(@proposal).body, + title: present(@proposal).title, + url: proposal_url(@proposal.id) + }) %> + +<% + edit_link( + resource_locator(@proposal).edit, + :edit, + :proposal, + proposal: @proposal + ) +%> + +<% + extra_admin_link( + resource_locator(@proposal).show(anchor: "proposal-answer"), + :create, + :proposal_answer, + { proposal: @proposal }, + { name: t(".answer"), icon: "comment-square" } + ) +%> + +<%= render partial: "voting_rules" %> +<% if component_settings.participatory_texts_enabled? %> +