diff options
author | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-05-13 19:12:49 +0300 |
---|---|---|
committer | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-05-13 19:12:49 +0300 |
commit | 16b1d3a34f665776bbdfca041326b9c2d569e59b (patch) | |
tree | a879ec89c2313c89b26bce951293d64c381f6684 /app/helpers/nav_helper.rb | |
parent | c37006fa4f4a85c031d4916a618be39ac0b0d3ed (diff) |
Fix mobile dropdown bug
Diffstat (limited to 'app/helpers/nav_helper.rb')
-rw-r--r-- | app/helpers/nav_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/helpers/nav_helper.rb b/app/helpers/nav_helper.rb index 3aa41030453..fbb799eecd3 100644 --- a/app/helpers/nav_helper.rb +++ b/app/helpers/nav_helper.rb @@ -43,4 +43,12 @@ module NavHelper class_name += " with-horizontal-nav" if defined?(nav) && nav class_name end + + def layout_nav_class + "page-with-layout-nav" if defined?(nav) && nav + end + + def layout_dropdown_class + "controls-dropdown-visible" if current_user + end end |