Sha256: c9100fe00022ca28b739a4fab25f343c66ecaba48f97af48ec668bd93b58435b

Contents?: true

Size: 1.11 KB

Versions: 5

Compression:

Stored size: 1.11 KB

Contents

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

  action :simple_accordion, :icon => :application_tile_vertical, :handler => :netzke_load_component_by_action
  action :user_grid, :icon => :table, :handler => :netzke_load_component_by_action
  action :simple_tab_panel, :icon => :table_multiple, :handler => :netzke_load_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

5 entries across 5 versions & 1 rubygems

Version Path
netzke-basepack-0.8.4 test/basepack_test_app/app/components/some_auth_app.rb
netzke-basepack-0.8.3 test/basepack_test_app/app/components/some_auth_app.rb
netzke-basepack-0.8.2 test/basepack_test_app/app/components/some_auth_app.rb
netzke-basepack-0.8.1 test/basepack_test_app/app/components/some_auth_app.rb
netzke-basepack-0.8.0 test/basepack_test_app/app/components/some_auth_app.rb