app/views/para/admin/shared/_navigation.html.haml in para-0.5.4 vs app/views/para/admin/shared/_navigation.html.haml in para-0.6.2
- old
+ new
@@ -1,11 +1,11 @@
%ul.sidebar-navigation.collapse.navbar-collapse#menu-sidebar
%li.brand-logo
= link_to admin_path do
= t('para.admin.title')
- - if @component_sections.any?
- - @component_sections.each do |component_section|
+ - if admin_component_sections.any?
+ - admin_component_sections.each do |component_section|
- next unless component_section.components.any? { |component| can?(:manage, component) }
%li.component-section-item
= link_to "#", class: 'component-section-title' do
= component_section.name