<% 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 ) %>
<%= link_to meetings_path(filter_link_params), class: "small hollow" do %> <%= icon "chevron-left", class: "icon--small", role: "img", "aria-hidden": true %> <%= t(".back") %> <% end %>

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

<%= cell "decidim/author", author_presenter_for(meeting.normalized_author), has_actions: true, from: meeting, context: { extra_classes: ["author-data--small"] } %>
<% if allowed_to?(:update, :meeting, meeting: meeting) %> <%= link_to t(".edit_meeting"), edit_meeting_path(meeting), class: "button secondary hollow expanded button-sc button--icon follow-button" %> <% end %> <% if allowed_to?(:close, :meeting, meeting: meeting) %> <%= link_to t(".close_meeting"), edit_meeting_meeting_close_path(meeting_id: meeting.id, id: meeting.id), class: "button hollow expanded button-sc button--icon follow-button" %> <% end %>
<%= l meeting.start_time, format: "%d" %> <%= l meeting.start_time, format: "%B" %> <%= l(meeting.start_time, format: "%Y") if meeting.start_time.year != Date.current.year %>
<%= 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? %> <% double = meeting.has_contributions? && meeting.has_attendees? %>
<% if meeting.has_contributions? %>
"> <%= t(".contributions") %> <%= meeting.contributions_count %>
<% end %> <% if meeting.has_attendees? %>
"> <%= t(".attendees") %> <%= meeting.attendees_count %>
<% end %> <% if meeting.attending_organizations %>
<%= t(".organizations") %> <%= simple_format(meeting.attending_organizations) %>
<% end %>
<% end %>
<% if registration.present? && registration.meeting.component.settings.registration_code_enabled %>
<%= registration_code_help_text %> <%= registration.code %>
<%= validation_state_for(registration) %>
<% end %> <% if meeting.services.any? %>
<% meeting.services.each do |service| %>
<%= icon "actions", class: "card--list__icon alert", role: "img", "aria-hidden": true %>

<%= translated_attribute(service["title"]) %>

<%= translated_attribute(service["description"]) %>
<% end %>
<% end %> <%= resource_reference(meeting) %> <%= resource_version(meeting, versions_path: meeting_versions_path(meeting)) %> <%= render partial: "decidim/shared/share_modal" %> <%= embed_modal_for 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)) %> <% if meeting.online_meeting? %> <%= render partial: "online_meeting_link", locals: { meeting: meeting } %> <% elsif meeting.hybrid_meeting? %> <%= render partial: "decidim/shared/static_map", locals: { icon_name: "meetings", geolocalizable: meeting } %> <%= render partial: "online_meeting_link", locals: { meeting: meeting } %> <% else %> <%= render partial: "decidim/shared/static_map", locals: { icon_name: "meetings", geolocalizable: meeting } %> <% end %> <%= 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? && meeting.user_group_registrations.any? %> <% user_group_ids = meeting.user_group_registrations.user_group_ids %>

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

<% Decidim::UserGroup.where(id: user_group_ids).each do |group| %>
<%= cell "decidim/author", present(group) %>
<% end %>
<% 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 %> <%= cell("decidim/flag_modal", meeting) %>