Sha256: 2a22e2ad2c076f435aa8154c0556063e9c8ec4dc877c026da31267a615757b88
Contents?: true
Size: 517 Bytes
Versions: 11
Compression:
Stored size: 517 Bytes
Contents
module AdminIt module Helpers class Page < WrapIt::Container default_tag 'body' child :create_top_menu, TopMenu child :create_toolbar, Toolbar def top_menu children.find { |item| item.is_a?(TopMenu) } end def toolbar children.find { |item| item.is_a?(Toolbar) } end after_initialize { self.deffered_render = true } before_capture do html_attr[:style] = 'padding-top: 70px;' end end register :body, Page end end
Version data entries
11 entries across 11 versions & 1 rubygems