BigW Consortium Gitlab

nav_helper.rb 350 Bytes
Newer Older
1 2 3 4
module NavHelper
  def nav_menu_collapsed?
    cookies[:collapsed_nav] == 'true'
  end
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

  def nav_sidebar_class
    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
21
end