% content_for :secondary_nav do %>
<% if can? :update, current_participatory_process %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t("info", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin.edit_participatory_process_path(current_participatory_process) %>
<% 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_process_steps_path(current_participatory_process) %>
<% 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.features_path(current_participatory_process) %>
<% current_participatory_process.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_process_categories_path(current_participatory_process) %>
<% end %>
<% if can? :read, Decidim::Attachment %>
- class="is-active" <% end %>>
<%= aria_selected_link_to t("attachments", scope: "decidim.admin.menu.participatory_processes_submenu"), decidim_admin.participatory_process_attachments_path(current_participatory_process.id) %>
<% 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_process_user_roles_path(current_participatory_process) %>
<% 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_process_moderations_path(current_participatory_process.id) %>
<% end %>
<% end %>
<%= render "layouts/decidim/admin/application" do %>
<%= translated_attribute(current_participatory_process.title) %>
<%= yield %>
<% end %>