app/views/layouts/decidim/admin/_sidebar.html.erb in decidim-admin-0.0.1.alpha9 vs app/views/layouts/decidim/admin/_sidebar.html.erb in decidim-admin-0.0.1
- old
+ new
@@ -5,10 +5,13 @@
<% end %>
</h1>
</div>
<nav class="main-menu">
- <%= active_link_to t("menu.dashboard", scope: "decidim.admin"), root_path, active: :exact %>
- <%= active_link_to t("menu.participatory_processes", scope: "decidim.admin"), participatory_processes_path, active: :inclusive %>
+ <%= active_link_to t("menu.dashboard", scope: "decidim.admin"), decidim_admin.root_path, active: :exact %>
+ <%= active_link_to t("menu.participatory_processes", scope: "decidim.admin"), decidim_admin.participatory_processes_path, active: :inclusive %>
+ <%= active_link_to t("menu.static_pages", scope: "decidim.admin"), decidim_admin.static_pages_path, active: :inclusive if can? :read, Decidim::StaticPage %>
+ <%= active_link_to t("menu.scopes", scope: "decidim.admin"), decidim_admin.scopes_path, active: :inclusive if can? :read, Decidim::Scope %>
+ <%= active_link_to t("menu.settings", scope: "decidim.admin"), decidim_admin.edit_organization_path, active: :inclusive if can? :read, current_organization %>
</nav>
<%= render partial: 'layouts/decidim/admin/login_items' %>