Module: Cms::SectionNodesHelper
- Defined in:
- app/helpers/cms/section_nodes_helper.rb
Instance Method Summary collapse
Instance Method Details
#section_icons(node, has_children = false) ⇒ Object
3 4 5 6 7 8 9 |
# File 'app/helpers/cms/section_nodes_helper.rb', line 3 def section_icons(node,has_children = false) if (node.depth < 3) has_children ? image_tag("cms/sitemap/no_contents.png", :class => "no_folder_toggle large") : image_tag("cms/sitemap/gray_expand.png", :class => "folder_toggle large") else has_children ? image_tag("cms/sitemap/no_contents.png", :class => "no_folder_toggle") : image_tag("cms/sitemap/expand.png", :class => "folder_toggle") end end |