Module: RailsAdminNestedSet::Helper

Defined in:
lib/rocket_cms/nested_set.rb

Instance Method Summary collapse

Instance Method Details

#extra_fields(node) ⇒ Object


4
5
6
7
8
9
10
11
# File 'lib/rocket_cms/nested_set.rb', line 4

def extra_fields(node)
  if node.class.name == 'Page'
    ret = RocketCMS::Menu.build_toggles(self, node.class, node, 'xs', '')
    ('<div style="white-space: normal; display: inline-block; margin-left: 10px;">' + ret.join(' ') + '</div>').html_safe
  else
    "".html_safe
  end
end