<% if result.children.any? && component_settings.display_progress_enabled? && result.progress.present? %>
<%= t("models.result.fields.progress", scope: "decidim.accountability") %>: <%= display_percentage result.progress %>
<% end %> <% if result.versions.any? || result.linked_resources(:proposals, "included_proposals").any? %>
<% if result.versions.any? %>
<%= t("results.show.stats.version_number", scope: "decidim.accountability") %> <%= result.versions.count %>
<%= link_to t("results.show.stats.show_all_versions", scope: "decidim.accountability"), result_versions_path(result), class: "button button--sc hollow secondary small expanded" %>
<% if result.last_editor.present? %>
<%= t("results.show.stats.last_edited_by", scope: "decidim.accountability") %> <%= render_resource_last_editor(result) %>
<% end %>
<%= t("results.show.stats.last_updated_at", scope: "decidim.accountability") %> <%= l result.versions.last.created_at, format: :decidim_short %>
<% end %> <% if result.linked_resources(:proposals, "included_proposals").any? %>
<%= t("results.show.stats.proposals", scope: "decidim.accountability") %> <%= stats_calculator.proposals_count %>
<%= t("results.show.stats.meetings", scope: "decidim.accountability") %> <%= stats_calculator.meetings_count %>
<%= t("results.show.stats.comments", scope: "decidim.accountability") %> <%= stats_calculator.comments_count %>
<%= t("results.show.stats.attendees", scope: "decidim.accountability") %> <%= stats_calculator.attendees_count %>
<%= t("results.show.stats.votes", scope: "decidim.accountability") %> <%= stats_calculator.votes_count %>
<%= t("results.show.stats.contributions", scope: "decidim.accountability") %> <%= stats_calculator.contributions_count %>
<% end %>
<% end %> <%= resource_reference(result) %> <%= render partial: "decidim/shared/share_modal" %> <%= embed_modal_for result_result_widget_url(result, format: :js) %>