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

<%== translated_attribute debate.title %>

<%= render partial: "decidim/shared/author_reference", locals: { author: Decidim::Debates::DebatePresenter.new(debate).author } %>
<% unless debate.official? %> <%= link_to_current_or_new_conversation_with(debate.author) %> <% end %>
<% if debate.commentable? %> "> <%= icon "comment-square", aria_label: t(".comments"), role: "img" %> <%= debate.comments.count %> <% end %>
<% 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) } %>