diff options
Diffstat (limited to 'app/helpers/nav_helper.rb')
-rw-r--r-- | app/helpers/nav_helper.rb | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/app/helpers/nav_helper.rb b/app/helpers/nav_helper.rb index 3ff8be5e284..469accf3142 100644 --- a/app/helpers/nav_helper.rb +++ b/app/helpers/nav_helper.rb @@ -12,10 +12,10 @@ module NavHelper end def page_sidebar_class - if pinned_nav? - "page-sidebar-expanded page-sidebar-pinned" - else + if nav_menu_collapsed? "page-sidebar-collapsed" + else + "page-sidebar-expanded" end end @@ -36,15 +36,7 @@ module NavHelper end def nav_header_class - class_name = '' - class_name << " with-horizontal-nav" if defined?(nav) && nav - - if pinned_nav? - class_name << " header-expanded header-pinned-nav" - else - class_name << " header-collapsed" - end - + class_name = " with-horizontal-nav" if defined?(nav) && nav class_name end @@ -55,8 +47,4 @@ module NavHelper def nav_control_class "nav-control" if current_user end - - def pinned_nav? - cookies[:pin_nav] == 'true' - end end |