app/views/para/admin/shared/_navigation.html.haml in para-0.8.2.3 vs app/views/para/admin/shared/_navigation.html.haml in para-0.8.3
- old
+ new
@@ -12,10 +12,10 @@
= component_section.name
%i.fa.fa-angle-up.pull-right
%ul.component-section-list-items.collapse.in{ id: "collapse-section-#{index}" }
- component_section.components.each do |component|
- - if can? :manage, component
+ - if can?(:manage, component) && show_component?(component)
%li.component-item{ class: (@component == component) && 'active' }
= link_to component.name, component.path
- else
%li.component-section-item