Sha256: 9fe4c4c2c2c97583f471e37552968f78b1b3228e42513dcec21619783dda222b

Contents?: true

Size: 555 Bytes

Versions: 34

Compression:

Stored size: 555 Bytes

Contents

module Cms
  module SectionNodesHelper
    def section_icons(node)
      
      if (node.root? || node.parent.root? || node.parent.parent.root?)
        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")
      else
        node.child_nodes.empty? ? image_tag("cms/sitemap/no_contents.png", :class => "no_folder_toggle") : image_tag("cms/sitemap/expand.png", :class => "folder_toggle")
      end
    end

  end
end

Version data entries

34 entries across 34 versions & 10 rubygems

Version Path
SFEley-browsercms-3.0.2 app/helpers/cms/section_nodes_helper.rb
buzzware-browsercms-3.0.2 app/helpers/cms/section_nodes_helper.rb
coredumplings-browsercms-3.0.0 app/helpers/cms/section_nodes_helper.rb
nate-browsercms-3.0.210 app/helpers/cms/section_nodes_helper.rb
nate-browsercms-3.0.211 app/helpers/cms/section_nodes_helper.rb
we5-browsercms-3.0.1.1 app/helpers/cms/section_nodes_helper.rb
browsercms-3.1.4 app/helpers/cms/section_nodes_helper.rb
browsercms-3.3.2 app/helpers/cms/section_nodes_helper.rb
browsercms-3.3.1 app/helpers/cms/section_nodes_helper.rb
browsercms-3.3.0 app/helpers/cms/section_nodes_helper.rb
browsercms-3.1.3 app/helpers/cms/section_nodes_helper.rb
browsercms-3.3.0.beta app/helpers/cms/section_nodes_helper.rb
bf4-browsercms-3.1.0 app/helpers/cms/section_nodes_helper.rb
drujensen-browsercms-3.2.0 app/helpers/cms/section_nodes_helper.rb
browsercmsi-3.1.2 app/helpers/cms/section_nodes_helper.rb
browsercms-3.1.2 app/helpers/cms/section_nodes_helper.rb
browsercms-3.1.1 app/helpers/cms/section_nodes_helper.rb
browsercmsi-3.1.1 app/helpers/cms/section_nodes_helper.rb
browsercmsi-3.1.0 app/helpers/cms/section_nodes_helper.rb
browsercms-3.1.0 app/helpers/cms/section_nodes_helper.rb