gitlab-org--gitlab-foss/app/views/layouts/_page.html.haml

27 lines
940 B
Plaintext
Raw Normal View History

.page-with-sidebar{ class: "#{('page-with-new-sidebar' if defined?(@new_sidebar) && @new_sidebar)} #{page_gutter_class}" }
- if show_new_nav?
- if defined?(nav) && nav
= render "layouts/nav/#{nav}"
- else
- if defined?(nav) && nav
.layout-nav
.container-fluid
= render "layouts/nav/#{nav}"
- if content_for?(:sub_nav)
= yield :sub_nav
.content-wrapper{ class: "#{(layout_nav_class unless show_new_nav?)}" }
2017-07-18 16:40:42 +00:00
- if show_new_nav?
.mobile-overlay
.alert-wrapper
= render "layouts/broadcast"
- if show_new_nav?
- if content_for?(:new_global_flash)
= yield :new_global_flash
- unless @hide_breadcrumbs
= render "layouts/nav/breadcrumbs"
= render "layouts/flash"
= yield :flash_message
2016-07-22 09:59:26 +00:00
%div{ class: "#{(container_class unless @no_container)} #{@content_class}" }
2016-11-17 14:12:20 +00:00
.content{ id: "content-body" }
2016-07-22 09:59:26 +00:00
= yield