2015-04-26 12:48:37 +05:30
|
|
|
module NavHelper
|
|
|
|
def nav_menu_collapsed?
|
|
|
|
cookies[:collapsed_nav] == 'true'
|
|
|
|
end
|
2015-09-11 14:41:01 +05:30
|
|
|
|
|
|
|
def nav_sidebar_class
|
2015-12-23 02:04:40 +05:30
|
|
|
if nav_menu_collapsed?
|
|
|
|
"sidebar-collapsed"
|
|
|
|
else
|
|
|
|
"sidebar-expanded"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def page_sidebar_class
|
2015-09-11 14:41:01 +05:30
|
|
|
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-04-26 12:48:37 +05:30
|
|
|
end
|