<%= heading_leaf_level_results(total_count) %>

<% results.each do |result| %>
<%= icon "actions", class: "card--list__icon", role: "img", "aria-hidden": true, remove_icon_class: true %> <%= link_to result_path(result), class: "card--list__text card__link card__link--block" do %>

<%= translated_attribute(result.title) %>

<% if result.start_date %> <%= t("models.result.fields.start_date", scope: "decidim.accountability") %> <%= l result.start_date, format: :decidim_short %> <% end %> <% if result.end_date %> <%= t("models.result.fields.end_date", scope: "decidim.accountability") %> <%= l result.end_date, format: :decidim_short %> <% end %> <% if result.status %> <%= t("models.result.fields.status", scope: "decidim.accountability") %> <%= translated_attribute(result.status.name) %> <% end %>
<% end %> <% if component_settings.display_progress_enabled? && result.progress.present? %>
<%= display_percentage result.progress %>
<% end %>
<% end %>
<%= decidim_paginate results, order_start_time: params[:order_start_time], with_scope: params.dig(:filter, :with_scope) %>