summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-08-30 13:45:09 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-08-30 13:45:09 +0100
commit32a68328d719327d26e82684cdf354ed25598416 (patch)
tree3bcf27b7d383492eebdae68636ad1cac93d88039
parent69be01b7cfa05aed33cdd04ff8034fb758440f83 (diff)
downloadgitlab-ce-32a68328d719327d26e82684cdf354ed25598416.tar.gz
fix wrapper_class failures
-rw-r--r--app/views/layouts/_page.html.haml5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/views/layouts/_page.html.haml b/app/views/layouts/_page.html.haml
index c27e71a855b..39424478ec5 100644
--- a/app/views/layouts/_page.html.haml
+++ b/app/views/layouts/_page.html.haml
@@ -1,3 +1,6 @@
+- wrapper_class = layout_nav_class
+- wrapper_class << " #{repo_wrapper_class}" if repo_wrapper_class
+
.page-with-sidebar{ class: page_with_sidebar_class }
- if show_new_nav?
- if defined?(nav) && nav
@@ -9,7 +12,7 @@
= render "layouts/nav/#{nav}"
- if content_for?(:sub_nav)
= yield :sub_nav
- .content-wrapper{ class: "#{layout_nav_class} #{repo_wrapper_class}" }
+ .content-wrapper{ class: wrapper_class }
- if show_new_nav?
.mobile-overlay
.alert-wrapper