Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use decidim_sanitize_admin instead of decidim_escape_translated #626

Merged
merged 1 commit into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions app/views/decidim/accountability/results/_timeline.html.erb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<div class="small-12 columns">
<div class="section">
<h4 class="section-heading"><%= t(".title") %></h4>
<ol class="timeline">
<% result.timeline_entries.each_with_index do |timeline_entry, i| %>
<li class="timeline__item ">
<div class="timeline__phase">
<span class="timeline__phase__number"><%= i + 1 %></span>
</div>
<div class="timeline__info">
<div class="timeline__description">
<span class="timeline__date text-small">
<%= l timeline_entry.entry_date, format: :decidim_short %>
</span>
<h4 class="timeline__title">
<%= translated_attribute timeline_entry.title %>
</h4>

<% if translated_attribute(timeline_entry.description).present? %>
<div class="timeline__description__description">
<%= decidim_sanitize_admin translated_attribute(timeline_entry.description) %>
</div>
<% end %>
</div>
</div>
</li>
<% end %>
</ol>
</div>
</div>
Loading