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 = content_tag_string('h2', title, {:class => "modal-header"}, false) body = content_tag_string('div', capture(&block), {:class => "modal-body"}, false) inner_wrapper = content_tag_string('div', "#{header}#{body}", {:id => id}, false) content_tag_string('div', inner_wrapper, {:style => 'display:none;'}, false) end |
#use_fluid_layout? ⇒ 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 |