<%= render partial: "meeting_poll_actions" %> <% if meeting.can_be_joined_by?(current_user) || meeting.on_different_platform? %>
<%= cell "decidim/meetings/join_meeting_button", meeting, show_remaining_slots: true %>
<% end %> <% if allowed_to?(:update, :meeting, meeting: meeting) || allowed_to?(:close, :meeting, meeting: meeting) || meeting.withdrawable_by?(current_user) %>
<% if allowed_to?(:update, :meeting, meeting: meeting) %> <%= link_to edit_meeting_path(meeting), class: "button button__sm button__transparent-secondary w-full" do %> <%= t("edit_meeting", scope: "decidim.meetings.meetings.meeting") %> <%= icon "pencil-line" %> <% end %> <% end %> <% if allowed_to?(:close, :meeting, meeting: meeting) %> <% caption = meeting.closed? ? t("edit_close_meeting", scope: "decidim.meetings.meetings.meeting") : t("close_meeting", scope: "decidim.meetings.meetings.meeting") %> <%= link_to edit_meeting_meeting_close_path(meeting_id: meeting.id, id: meeting.id), class: "button button__sm button__transparent-secondary w-full" do %> <%= caption %> <%= icon "pencil-line" %> <% end %> <% end %> <% if meeting.withdrawable_by?(current_user) %> <%= action_authorized_link_to( :withdraw, withdraw_meeting_path(meeting), method: :put, class: "button button__sm button__transparent-secondary w-full", title: t("withdraw_btn_hint", scope: "decidim.meetings.meetings.show"), data: { confirm: t("withdraw_confirmation_html", scope: "decidim.meetings.meetings.show") } ) do %> <%= t("withdraw_meeting", scope:"decidim.meetings.meetings.show") %> <% end %> <% end %>
<% end %> <% if (meeting.closed? && meeting.closing_visible?) || (registration.present? && registration.meeting.component.settings.registration_code_enabled) || (meeting.services.any?) %>
<% if meeting.closed? && meeting.closing_visible? %> <% if meeting.has_contributions? %> <%= render layout: "decidim/meetings/layouts/aside_block", locals: { emoji: "add-box-line" } do %>

<%= t("contributions", scope: "decidim.meetings.meetings.show") %>

<%= meeting.contributions_count %>
<% end %> <% end %> <% if meeting.has_attendees? %> <%= render layout: "decidim/meetings/layouts/aside_block", locals: { emoji: "group-line" } do %>

<%= t("attendees", scope: "decidim.meetings.meetings.show") %>

<%= meeting.attendees_count %>
<% end %> <% end %> <% if meeting.attending_organizations.present? %> <%= render layout: "decidim/meetings/layouts/aside_block", locals: { emoji: "community-line" } do %>

<%= t("organizations", scope: "decidim.meetings.meetings.show") %>

<% end %> <% end %> <% end %> <% if registration.present? && registration.meeting.component.settings.registration_code_enabled %> <%= render layout: "decidim/meetings/layouts/aside_block", locals: { emoji: "coupon-line" } do %>

<%= registration_code_help_text %>

<%= registration.code %>
<% if registration.validated? %>
<%= t("validated", scope: "decidim.meetings.meetings.show.registration_state") %>
<% else %>
<%= t("validation_pending", scope: "decidim.meetings.meetings.show.registration_state") %>
<% end %> <% end %> <% end %> <% if meeting.services.any? %> <% meeting.services.each do |service| %> <%= render layout: "decidim/meetings/layouts/aside_block", locals: { emoji: "star-line" } do %>

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

<%= translated_attribute(service["description"]) %>
<% end %> <% end %> <% end %>
<% end %>
<%= cell "decidim/meetings/cancel_registration_meeting_button", meeting %> <%= follow_button_for(meeting) %> <%= cell "decidim/share_button", nil %> <%= cell "decidim/report_button", meeting %>