% content_for :secondary_nav do %>
<% if can? :update, current_participatory_space.consultation %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t("consultation", scope: "decidim.admin.menu.questions_submenu"),
decidim_admin_consultations.edit_consultation_path(current_participatory_space.consultation) %>
<% end %>
<% if can?(:update, current_participatory_space) %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t("info", scope: "decidim.admin.menu.questions_submenu"),
decidim_admin_consultations.edit_question_path(current_participatory_space) %>
<% end %>
<% if can? :read, Decidim::Consultations::Response %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t("responses", scope: "decidim.admin.menu.questions_submenu"),
decidim_admin_consultations.responses_path(current_participatory_space) %>
<% end %>
<% if can? :read, Decidim::Component %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t("components", scope: "decidim.admin.menu.questions_submenu"),
decidim_admin_consultations.components_path(current_participatory_space) %>
<% current_participatory_space.components.each do |component| %>
<% if component.manifest.admin_engine %>
- class="is-active" <% end %>>
<%= link_to manage_component_path(component) do %>
<%= translated_attribute component.name %>
<% if component.primary_stat.present? %>
">
<%= component.primary_stat %>
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>
<% if can? :read, Decidim::Category %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t(".categories"),
decidim_admin_consultations.categories_path(current_participatory_space) %>
<% end %>
<% if can? :read, Decidim::Attachment %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t(".attachments"),
decidim_admin_consultations.question_attachments_path(current_participatory_space) %>
<% end %>
<% end %>
<%= render "layouts/decidim/admin/application" do %>
<%= translated_attribute(current_participatory_space.consultation.title) %>
<%= yield %>
<% end %>