<% provide(:title, translated_attribute(meeting.title)) %> <% add_decidim_meta_tags({ title: translated_attribute(meeting.title), description: translated_attribute(meeting.description), url: meeting_url(meeting.id) }) %>

<%= translated_attribute meeting.title %>

<%= l meeting.start_time, format: "%d" %> <%= l meeting.start_time, format: "%B" %>
<%= meeting.start_time.strftime("%H:%M") %> - <%= meeting.end_time.strftime("%H:%M") %>
<% if !meeting.closed? && meeting.registrations_enabled? %> <% if meeting.has_registration_for? current_user %> <%= action_authorized_button_to :leave, t('.going'), meeting_registration_path(meeting), method: :delete, class: "button expanded button--sc success" %> <% else %> <%= action_authorized_button_to :join, meeting.has_available_slots? ? t('.join') : t('.no_slots_available'), "", class: "button expanded button--sc", disabled: !meeting.has_available_slots?, data: { toggle: current_user.present? ? "meeting-registration-confirm" : "loginModal" } %> <% end %> <% if meeting.available_slots.positive? %> <%= t(".remaining_slots", count: meeting.remaining_slots) %> <% end %> <% end %> <%= render partial: "decidim/shared/follow_button", locals: { followable: meeting } %>
<% if meeting.closed? %>
<% if meeting.contributions_count && meeting.contributions_count.positive? %>
<%= t(".attendees") %> <%= meeting.attendees_count %>
<%= t(".contributions") %> <%= meeting.contributions_count %>
<% else %>
<%= t(".attendees") %> <%= meeting.attendees_count %>
<% end %>
<%= t(".organizations") %> <%= meeting.attending_organizations %>
<% end %>
<%= feature_reference(meeting) %> <%= render partial: "decidim/shared/share_modal" %> <%= embed_modal_for meeting_meeting_widget_url(meeting, format: :js) %>

<%= decidim_sanitize translated_attribute meeting.description %>

<%= render partial: "decidim/shared/static_map", locals: { icon_name: "meetings", geolocalizable: meeting } %> <%= render partial: "decidim/shared/tags", locals: { resource: meeting, tags_class_extra: "tags--meeting" } %>
<% if meeting.closed? %>

<%= t(".meeting_report") %>

<%= decidim_sanitize translated_attribute meeting.closing_report %>
<% end %> <%= linked_resources_for meeting, :proposals, "proposals_from_meeting" %> <%= linked_resources_for meeting, :results, "meetings_through_proposals" %>
<%= attachments_for meeting %> <%= comments_for meeting %> <%= render partial: "registration_confirm" %> <%= javascript_include_tag "decidim/proposals/social_share" %> <%= stylesheet_link_tag "decidim/proposals/social_share" %>