Module: Lato::Layoutable
- Extended by:
- ActiveSupport::Concern
- Included in:
- ApplicationController
- Defined in:
- app/controllers/concerns/lato/layoutable.rb
Instance Method Summary collapse
- #active_navbar(key) ⇒ Object
- #active_sidebar(key) ⇒ Object
- #hide_sidebar ⇒ Object
- #page_class(class_name) ⇒ Object
- #page_classes(classes) ⇒ Object
- #page_title(title) ⇒ Object
- #show_sidebar ⇒ Object
Instance Method Details
#active_navbar(key) ⇒ Object
26 27 28 |
# File 'app/controllers/concerns/lato/layoutable.rb', line 26 def (key) @navbar_key = key end |
#active_sidebar(key) ⇒ Object
22 23 24 |
# File 'app/controllers/concerns/lato/layoutable.rb', line 22 def (key) @sidebar_key = key end |
#hide_sidebar ⇒ Object
18 19 20 |
# File 'app/controllers/concerns/lato/layoutable.rb', line 18 def @layout_sidebar = false end |
#page_class(class_name) ⇒ Object
34 35 36 |
# File 'app/controllers/concerns/lato/layoutable.rb', line 34 def page_class(class_name) @layout_body_classes << class_name end |
#page_classes(classes) ⇒ Object
38 39 40 |
# File 'app/controllers/concerns/lato/layoutable.rb', line 38 def page_classes(classes) @layout_body_classes = classes end |
#page_title(title) ⇒ Object
30 31 32 |
# File 'app/controllers/concerns/lato/layoutable.rb', line 30 def page_title(title) @layout_page_title = title end |
#show_sidebar ⇒ Object
14 15 16 |
# File 'app/controllers/concerns/lato/layoutable.rb', line 14 def @layout_sidebar = true end |