Sha256: b7984cf4adbbca5633c7b8aca42f1ae3dca3dfe1d12657ed7d3f11cf70ab0d50

Contents?: true

Size: 1.13 KB

Versions: 9

Compression:

Stored size: 1.13 KB

Contents

class SomeAuthApp < Netzke::Basepack::AuthApp
  def menu
    [:simple_accordion.action, :user_grid.action, :simple_tab_panel.action] + super
  end

  action :simple_accordion, :icon => :application_tile_vertical, :handler => :load_netzke_component_by_action
  action :user_grid, :icon => :table, :handler => :load_netzke_component_by_action
  action :simple_tab_panel, :icon => :table_multiple, :handler => :load_netzke_component_by_action

  component :user_grid
  component :simple_accordion
  component :simple_tab_panel, :active_tab => 0

  # Wrapping up original layout into a border-layout with the north panel being a fancy header
  def configuration
    orig = super
    orig.merge(:items => [{
      :region => :north,
      :height => 40,
      :html => %Q{
        <div style="margin:10px; color:#333; text-align:center; font-family: Helvetica;">
          <span style="color:#B32D15">Netzke</span> basic application
        </div>
      },
      :bodyStyle => {"background" => "#FFF url(\"/images/header-deco.gif\") top left repeat-x"}
    },{
      :region => :center,
      :layout => :border,
      :items => orig[:items]
    }])
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
netzke-basepack-0.7.7 test/basepack_test_app/app/components/some_auth_app.rb
netzke-basepack-zh-0.7.6 test/basepack_test_app/app/components/some_auth_app.rb
netzke-basepack-0.7.6 test/basepack_test_app/app/components/some_auth_app.rb
netzke-basepack-0.7.5 test/basepack_test_app/app/components/some_auth_app.rb
netzke-basepack-0.7.4 test/basepack_test_app/app/components/some_auth_app.rb
netzke-basepack-0.7.3 test/basepack_test_app/app/components/some_auth_app.rb
netzke-basepack-0.7.2 test/basepack_test_app/app/components/some_auth_app.rb
netzke-basepack-0.7.1 test/basepack_test_app/app/components/some_auth_app.rb
netzke-basepack-0.7.0 test/rails_app/app/components/some_auth_app.rb