From 863bcb756cf9cc4ad9139b84662df8efeb69b28e Mon Sep 17 00:00:00 2001 From: takahashim Date: Mon, 5 Aug 2024 20:26:09 +0900 Subject: [PATCH] fix: use `decidim_sanitize_admin` instead of `decidim_escape_translated` --- .../accountability/results/_timeline.html.erb | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 app/views/decidim/accountability/results/_timeline.html.erb diff --git a/app/views/decidim/accountability/results/_timeline.html.erb b/app/views/decidim/accountability/results/_timeline.html.erb new file mode 100644 index 000000000..8f31f24ed --- /dev/null +++ b/app/views/decidim/accountability/results/_timeline.html.erb @@ -0,0 +1,30 @@ +
+
+

<%= t(".title") %>

+
    + <% result.timeline_entries.each_with_index do |timeline_entry, i| %> +
  1. +
    + <%= i + 1 %> +
    +
    +
    + + <%= l timeline_entry.entry_date, format: :decidim_short %> + +

    + <%= translated_attribute timeline_entry.title %> +

    + + <% if translated_attribute(timeline_entry.description).present? %> +
    + <%= decidim_sanitize_admin translated_attribute(timeline_entry.description) %> +
    + <% end %> +
    +
    +
  2. + <% end %> +
+
+