<% add_decidim_meta_tags({ description: translated_attribute(debate.description), title: present(debate).title, url: debate_url(debate.id) }) %> <% edit_link( resource_locator(debate).edit, :update, :debate, debate: debate ) %>
<%= link_to :debates, class: "small hollow" do %> <%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %> <%= t(".back") %> <% end %>

<%== present(debate).title %>

<%= cell "decidim/author", Decidim::Debates::DebatePresenter.new(debate).author, context: { extra_classes: ["author-data--small"] } %>
<% if debate.start_time.present? && debate.end_time.present? %>
<%= l debate.start_time, format: "%d" %> <%= l debate.start_time, format: "%B" %>
<%= l debate.start_time, format: "%H:%M" %> - <%= l debate.end_time, format: "%H:%M" %>
<% end %> <%= render partial: "decidim/shared/follow_button", locals: { followable: debate, large: false } %>
<%= resource_reference(debate) %> <%= render partial: "decidim/shared/share_modal" %>
<%= render_debate_description(debate) %> <% if translated_attribute(debate.instructions).present? %>
<%= decidim_sanitize(simple_format(translated_attribute(debate.instructions))) %>
<% end %> <% if translated_attribute(debate.information_updates).present? %>
<%= simple_format(translated_attribute(debate.information_updates)) %>
<% end %> <% if debate.category %>
  • <%= link_to translated_attribute(debate.category.name), debates_path(filter: { category_id: debate.category.id }) %>
<% end %>
<%= comments_for debate %> <%= render partial: "decidim/shared/flag_modal", locals: { reportable: debate, form: report_form, url: decidim.report_path(sgid: debate.to_sgid.to_s) } %>