diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-03-23 02:01:28 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-03-23 02:01:28 +0300 |
commit | eb56b700ad901f581698dff90478461974fe00c2 (patch) | |
tree | 26785b0f1284b38689ab53d8206c5b110796dfb3 /app/helpers/nav_helper.rb | |
parent | 25d779a321e1859e89c00a27e1f025c6f77ea2e4 (diff) |
genericise sidebar vertical offset css as it relates to the subnav
Diffstat (limited to 'app/helpers/nav_helper.rb')
-rw-r--r-- | app/helpers/nav_helper.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/nav_helper.rb b/app/helpers/nav_helper.rb index a8f167cbff2..991fd949b94 100644 --- a/app/helpers/nav_helper.rb +++ b/app/helpers/nav_helper.rb @@ -31,7 +31,11 @@ module NavHelper end def layout_nav_class - "page-with-layout-nav" if defined?(nav) && nav + class_name = '' + class_name << " page-with-layout-nav" if defined?(nav) && nav + class_name << " page-with-sub-nav" if content_for?(:sub_nav) + + class_name end def nav_control_class |