<%= javascript_include_tag "diff.js" %> <%= javascript_include_tag "decidim/accountability/accountability" %>
<%= render partial: "decidim/accountability/results/nav_breadcrumb", locals: { category: result.parent.try(:category) || result.try(:category) } %>

<%= t(".changes_at_title", title: translated_attribute(result.title)) %>

<%= cell("decidim/diff", current_version) %>
<%= t("results.show.stats.version_number", scope: "decidim.accountability") %> <%= t("results.show.stats.version_number_out_of_total", scope: "decidim.accountability", current_version: params[:id], total_count: 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" %> <%= link_to t("results.show.stats.back_to_result", scope: "decidim.accountability"), result_path(result), class: "button button--sc hollow secondary small expanded" %>
<% if current_version.whodunnit.present? %>
<%= t("results.show.stats.version_author", scope: "decidim.accountability") %> <%= render_resource_editor(current_version) %>
<% end %>
<%= t("results.show.stats.version_created_at", scope: "decidim.accountability") %> <%= l current_version.created_at, format: :decidim_short %>