<% provide(:title, present(meeting).title) %> <% add_decidim_meta_tags({ title: present(meeting).title, description: present(meeting).description, url: meeting_url(meeting.id) }) %> <% edit_link( resource_locator(meeting).edit, :update, :meeting, meeting: meeting ) %>

<%= present(meeting).title(links: true) %>

<% if meeting.organizer.present? %> <%= cell "decidim/author", present(meeting.organizer) %> <% end %>
<%= l meeting.start_time, format: "%d" %> <%= l meeting.start_time, format: "%B" %>
<%= meeting.start_time.strftime("%H:%M") %> - <%= meeting.end_time.strftime("%H:%M") %>
<%= cell "decidim/meetings/join_meeting_button", meeting, big_button: true, show_remaining_slots: true %> <%= render partial: "decidim/shared/follow_button", locals: { followable: meeting, large: false } %>
<% 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") %> <%= simple_format(meeting.attending_organizations) %>
<% end %>
<% if registration %>
<%= registration_code_help_text %> <%= registration.code %>
<%= registration_validation_state %>
<% end %> <% if meeting.services.any? %>
<% meeting.services.each do |service| %>
<%= icon "actions", class: "card--list__icon alert" %>
<%= translated_attribute(service["title"]) %>
<%= translated_attribute(service["description"]) %>
<% end %>
<% end %> <%= resource_reference(meeting) %> <%= render partial: "decidim/shared/share_modal" %> <%= embed_modal_for meeting_meeting_widget_url(meeting, format: :js) %>
<% if meeting.private_meeting? %> label proposal-status"> <%= t("private_meeting", scope: "decidim.meetings.types") %> <% end %> <% if meeting.private_meeting? and meeting.transparent? %> label proposal-status"> <%= t("transparent", scope: "decidim.meetings.types") %> <% end %>

<%= decidim_sanitize(present(meeting).description(links: true)) %>

<%= 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.agenda.present? && meeting.agenda.visible? %> <%= render "meeting_agenda" %> <% end %> <% if meeting.minutes.present? && meeting.minutes.visible? %> <%= render "meeting_minutes" %> <% end %> <% 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 %> <%= pad_iframe_for meeting %> <%= javascript_include_tag "decidim/proposals/social_share" %> <%= stylesheet_link_tag "decidim/proposals/social_share" %>