Module Cms::SectionNodesHelper
In: app/helpers/cms/section_nodes_helper.rb

Methods

Public Instance methods

[Source]

    # File app/helpers/cms/section_nodes_helper.rb, line 3
 3:     def section_icons(node)
 4:       
 5:       if (node.root? || node.parent.root? || node.parent.parent.root?)
 6:         node.child_nodes.empty? ? image_tag("cms/sitemap/no_contents.png", :class => "no_folder_toggle large") : image_tag("cms/sitemap/gray_expand.png", :class => "folder_toggle large")
 7:       else
 8:         node.child_nodes.empty? ? image_tag("cms/sitemap/no_contents.png", :class => "no_folder_toggle") : image_tag("cms/sitemap/expand.png", :class => "folder_toggle")
 9:       end
10:     end

[Validate]