2015-01-30 14:23:35 -05:00
|
|
|
module NavHelper
|
|
|
|
def nav_menu_collapsed?
|
|
|
|
cookies[:collapsed_nav] == 'true'
|
|
|
|
end
|
2015-04-22 09:48:39 -04:00
|
|
|
|
|
|
|
def nav_sidebar_class
|
2015-12-02 08:05:10 -05:00
|
|
|
if nav_menu_collapsed?
|
|
|
|
"sidebar-collapsed"
|
|
|
|
else
|
|
|
|
"sidebar-expanded"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def page_sidebar_class
|
2015-04-22 09:48:39 -04:00
|
|
|
if nav_menu_collapsed?
|
|
|
|
"page-sidebar-collapsed"
|
|
|
|
else
|
|
|
|
"page-sidebar-expanded"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def nav_header_class
|
|
|
|
if nav_menu_collapsed?
|
|
|
|
"header-collapsed"
|
|
|
|
else
|
|
|
|
"header-expanded"
|
|
|
|
end
|
|
|
|
end
|
2015-01-30 14:23:35 -05:00
|
|
|
end
|