% content_for :secondary_nav do %>
<% if can? :update, current_participatory_space %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t("info", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.edit_participatory_process_path(current_participatory_space) %>
<% end %>
<% if can? :read, Decidim::ParticipatoryProcessStep %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t("steps", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.participatory_process_steps_path(current_participatory_space) %>
<% end %>
<% if can? :read, Decidim::Feature %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t("features", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.features_path(current_participatory_space) %>
<% current_participatory_space.features.each do |feature| %>
<% if feature.manifest.admin_engine %>
- class="is-active" <% end %>>
<%= link_to manage_feature_path(feature) do %>
<%= translated_attribute feature.name %>
<% if feature.primary_stat.present? %>
"><%= feature.primary_stat %>
<% end %>
<% end %>
<% end %>
<% end %>
<% end %>
<% if can? :read, Decidim::Category %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t("categories", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.categories_path(current_participatory_space) %>
<% end %>
<% if can?(:read, Decidim::AttachmentCollection) || can?(:read, Decidim::Attachment) %>
-
<%= t("attachments", scope: "decidim.admin.menu.participatory_processes_submenu") %>
<% if can? :read, Decidim::AttachmentCollection %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t("attachment_collections", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.participatory_process_attachment_collections_path(current_participatory_space) %>
<% end %>
<% if can? :read, Decidim::Attachment %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t("attachment_files", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.participatory_process_attachments_path(current_participatory_space) %>
<% end %>
<% end %>
<% if can? :read, Decidim::ParticipatoryProcessUserRole %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t("process_admins", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.participatory_process_user_roles_path(current_participatory_space) %>
<% end %>
<% if can? :read, Decidim::Moderation %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t("moderations", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin_participatory_processes.moderations_path(current_participatory_space) %>
<% end %>
<% end %>
<%= render "layouts/decidim/admin/application" do %>
<%= translated_attribute(current_participatory_space.title) %>
<%= yield %>
<% end %>