<% add_decidim_meta_tags({ description: translated_attribute(debate.description), title: translated_attribute(debate.title), url: debate_url(debate.id) }) %> <% edit_link( resource_locator(debate).edit, :update, :debate, debate: debate ) %>

<%== translated_attribute 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 } %>
<%= resource_reference(debate) %> <%= render partial: "share", locals: { debate: debate } %>

<%= simple_format(translated_attribute(debate.description)) %>

<% if translated_attribute(debate.instructions).present? %>
<%= 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 %> <%= javascript_include_tag "decidim/proposals/social_share" %> <%= stylesheet_link_tag "decidim/proposals/social_share" %> <%= render partial: "decidim/shared/flag_modal", locals: { reportable: debate, form: report_form, url: decidim.report_path(sgid: debate.to_sgid.to_s) } %>