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

Version Path
admin_it-1.0.11 lib/admin_it/helpers/page.rb
admin_it-1.0.10 lib/admin_it/helpers/page.rb
admin_it-1.0.9 lib/admin_it/helpers/page.rb
admin_it-1.0.8 lib/admin_it/helpers/page.rb
admin_it-1.0.7 lib/admin_it/helpers/page.rb
admin_it-1.0.6 lib/admin_it/helpers/page.rb
admin_it-1.0.5 lib/admin_it/helpers/page.rb
admin_it-1.0.4 lib/admin_it/helpers/page.rb
admin_it-1.0.3 lib/admin_it/helpers/page.rb
admin_it-1.0.2 lib/admin_it/helpers/page.rb
admin_it-1.0.1 lib/admin_it/helpers/page.rb