app/views/para/admin/shared/_navigation.html.haml in para-0.8.14 vs app/views/para/admin/shared/_navigation.html.haml in para-0.8.15
- old
+ new
@@ -13,10 +13,10 @@
%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) && show_component?(component)
- %li.component-item{ class: (@component == component || @component.parent_component == component) && 'active' }
+ %li.component-item{ class: ('active' if current_component_or_parent?(component)) }
= link_to component.main_navigation_name, component.path
- else
%li.component-section-item
.component-section-title