diff options
author | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-08-07 20:28:24 +0300 |
---|---|---|
committer | Annabel Dunstone Gray <annabel.dunstone@gmail.com> | 2017-08-07 20:28:24 +0300 |
commit | 34ca73cae4df069e937cd6c9dfbc445240a9b73a (patch) | |
tree | 914234b865dda028455e39e32a3c100a6ee340ee /app/helpers/nav_helper.rb | |
parent | 625b0bcfba0a3cb1bf4f4a0d5f224c958e73239c (diff) |
Check if sidebar exists
Diffstat (limited to 'app/helpers/nav_helper.rb')
-rw-r--r-- | app/helpers/nav_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/nav_helper.rb b/app/helpers/nav_helper.rb index e0f1948ce20..b63b3b70903 100644 --- a/app/helpers/nav_helper.rb +++ b/app/helpers/nav_helper.rb @@ -2,7 +2,7 @@ module NavHelper def page_with_sidebar_class class_name = page_gutter_class class_name << 'page-with-new-sidebar' if defined?(@new_sidebar) && @new_sidebar - class_name << 'page-with-icon-sidebar' if collapsed_sidebar? + class_name << 'page-with-icon-sidebar' if collapsed_sidebar? && @new_sidebar class_name end |