<% components = current_participatory_space.components.published.where.not(manifest_name: "meetings") meeting_components = current_participatory_space.components.published.where(manifest_name: "meetings") %> <%= extended_navigation_bar(([ { name: t(".conference_menu_item"), url: decidim_conferences.conference_path(current_participatory_space), active: is_active_link?(decidim_conferences.conference_path(current_participatory_space), :exclusive) }, current_participatory_space.speakers.any? ? { name: t(".conference_speaker_menu_item"), url: decidim_conferences.conference_conference_speakers_path(current_participatory_space), active: is_active_link?(decidim_conferences.conference_conference_speakers_path(current_participatory_space), :inclusive) } : nil ] + meeting_components.map do |component| Decidim::Meetings::Meeting.visible_meeting_for(current_user).any? ? { name: translated_attribute(component.name), url: decidim_conferences.conference_conference_program_path(current_participatory_space, id: component.id), active: is_active_link?(decidim_conferences.conference_conference_program_path(current_participatory_space, id: component.id), :inclusive) } : nil end + [ current_participatory_space.partners.any? ? { name: t(".conference_partners_menu_item"), url: decidim_conferences.conference_path(current_participatory_space, anchor: "conference-partners"), } : nil, meeting_components.any? ? { name: t(".venues"), url: decidim_conferences.conference_path(current_participatory_space, anchor: "venues") } : nil, ] + components.map do |component| { name: translated_attribute(component.name), url: main_component_path(component), active: is_active_link?(main_component_path(component), :inclusive) } end + [ current_participatory_space.attachments.any? || current_participatory_space.media_links.any? ? { name: t(".media"), url: decidim_conferences.conference_media_path(current_participatory_space), active: is_active_link?(decidim_conferences.conference_media_path(current_participatory_space), :inclusive) } : nil ]).compact) %>