<% add_decidim_meta_tags({ image_url: current_participatory_space.attached_uploader(:hero_image).url, description: translated_attribute(current_participatory_space.short_description), url: conference_url(current_participatory_space), twitter_handler: current_organization.twitter_handler }) %> <% edit_link( resource_locator(current_participatory_space).edit, :update, :conference, conference: current_participatory_space ) %> <%# NOTE: This page is wrapped within a main tag, in order to include the hero inside the two-column layout. Therefore is mandatory to pass the "main_enabled: false" flag to the layout_two_col for disabling the original main. %>
<%= content_for :aside do %>
<% end %> <%= render partial: "conference_hero" %> <% layout_style = conference_nav_items(current_participatory_space).any? ? "layout_two_col" : "layout_center" %> <%= render layout: "layouts/decidim/shared/#{layout_style}", locals: { reverse: true, main_enabled: false, columns: 10 } do %> <%= participatory_space_floating_help %>

<%= t("conferences.show.introduction", scope: "decidim") %>

<%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.short_description) %>

<%= t("conferences.show.details", scope: "decidim") %>

<%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.description) %>
<% if current_participatory_space.registrations_enabled? %> <% if current_participatory_space.has_registration_for?(current_user) %> <%= link_to t("decidim.conferences.conferences.show.manage_registration"), decidim_conferences.conference_registration_types_path(current_participatory_space), class: "button button__lg button__primary" %> <% elsif current_participatory_space.has_published_registration_types? %> <%= link_to t("decidim.conferences.conferences.show.register"), decidim_conferences.conference_registration_types_path(current_participatory_space), class: "button button__lg button__secondary" %> <% end %> <% end %> <% current_participatory_space.components.where(manifest_name: "meetings").each do |component_meeting| %> <% if component_meeting.published? || component_meeting == self.try(:current_component) %> <%= link_to translated_attribute(component_meeting.name), decidim_conferences.conference_conference_program_path(current_participatory_space, id: component_meeting.id), class: "button button__lg button__transparent-secondary" %> <% end %> <% end %>
<%= render partial: "partners", locals: { conference: current_participatory_space } %> <% unless translated_attribute(current_participatory_space.objectives).blank? %>

<%= t("decidim.conferences.show.objectives") %>

<%= decidim_sanitize_editor_admin translated_attribute(current_participatory_space.objectives) %>
<% end %> <%= render_hook(:conference_venues) %> <% if current_participatory_space.registrations_enabled? %>
<% if current_participatory_space.has_published_registration_types? %>

<%= t("decidim.conferences.conferences.show.register") %>

<% end %> <% if current_user.present? %>
<%= icon "user-follow-line", class: "conference__box-icon" %>

<%= t("decidim.conferences.conferences.show.make_conference_registration") %>

<%= t("decidim.conferences.conferences.show.login_as", name: current_user.name, email: current_user.email ) %>

<% if current_participatory_space.has_registration_for?(current_user) %> <%= link_to t("decidim.conferences.conferences.show.manage_registration"), decidim_conferences.conference_registration_types_path(current_participatory_space), class: "button button__lg button__primary" %> <% elsif current_participatory_space.has_published_registration_types? %> <%= link_to t("decidim.conferences.conferences.show.register"), decidim_conferences.conference_registration_types_path(current_participatory_space), class: "button button__lg button__secondary" %> <% end %>
<% else %> <%= render partial: "decidim/devise/shared/login_boxes", locals: { scope: "decidim.conferences.conferences.show" } %> <% end %>
<% end %> <%= cell("decidim/conferences/linked_participatory_spaces", current_participatory_space) %> <% if current_participatory_space.show_statistics? %>

<%= t("decidim.statistics.headline") %>

<%= cell("decidim/statistics", stats.collection) %>
<% end %> <% end %>