app/helpers/cms/section_nodes_helper.rb in browsercms-4.0.0.alpha vs app/helpers/cms/section_nodes_helper.rb in browsercms-4.0.0.beta
- old
+ new
@@ -24,10 +24,10 @@
new_section_path(section_id: section)
end
# When sitemap initially renders, we only want to show first level.
def initial_visibility_class(section_node)
- section_node.depth > 1 ? 'hide' : ''
+ section_node.depth >= 1 ? 'hide' : ''
end
# Returns a css class for determine sitemap depth.
def sitemap_depth_class(section_node)
one_based_depth = section_node.depth + 1