diff options
author | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-05-03 19:44:55 +0300 |
---|---|---|
committer | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-05-03 20:36:04 +0300 |
commit | f53557a4faa02c4596d16819c4b5c7783829677a (patch) | |
tree | 7f40066d0fad24ea0d8092842f733252959a98af /app/helpers/nav_helper.rb | |
parent | bdda1eeddeb8a49484d221ae7217a9983bf984c4 (diff) |
Group navigation design update
Diffstat (limited to 'app/helpers/nav_helper.rb')
-rw-r--r-- | app/helpers/nav_helper.rb | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/app/helpers/nav_helper.rb b/app/helpers/nav_helper.rb index 5d86bd490a8..3aa41030453 100644 --- a/app/helpers/nav_helper.rb +++ b/app/helpers/nav_helper.rb @@ -34,10 +34,13 @@ module NavHelper end def nav_header_class - if nav_menu_collapsed? - "header-collapsed" - else - "header-expanded" - end + class_name = + if nav_menu_collapsed? + "header-collapsed" + else + "header-expanded" + end + class_name += " with-horizontal-nav" if defined?(nav) && nav + class_name end end |