Module: GunnerTechnologyHelper

Defined in:
lib/generators/gunnertechnology/project/templates/app/helpers/gunner_technology_helper.rb

Instance Method Summary collapse

Instance Method Details

#inline_modal(title, id, &block) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/generators/gunnertechnology/project/templates/app/helpers/gunner_technology_helper.rb', line 6

def inline_modal(title, id, &block)
  header = ('h2', title, {:class => "modal-header"}, false)
  body = ('div', capture(&block), {:class => "modal-body"}, false)
  inner_wrapper = ('div', "#{header}#{body}", {:id => id}, false)
  
  ('div', inner_wrapper, {:style => 'display:none;'}, false)
end

#use_fluid_layout?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/generators/gunnertechnology/project/templates/app/helpers/gunner_technology_helper.rb', line 2

def use_fluid_layout?
  !!@use_fluid_layout
end