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

31 lines
1.1 KiB
Text
Raw Normal View History

.page-with-sidebar{ class: "#{page_sidebar_class} #{page_gutter_class}" }
.sidebar-wrapper.nicescroll
.sidebar-action-buttons
2016-10-03 05:38:21 -04:00
.nav-header-btn.toggle-nav-collapse{ title: "Open/Close" }
%span.sr-only Toggle navigation
= icon('bars')
2016-10-03 05:38:21 -04:00
%div{ class: "nav-header-btn pin-nav-btn has-tooltip #{'is-active' if pinned_nav?} js-nav-pin", title: pinned_nav? ? "Unpin navigation" : "Pin Navigation", data: { placement: 'right', container: 'body' } }
%span.sr-only Toggle navigation pinning
= icon('fw thumb-tack')
- if defined?(sidebar) && sidebar
= render "layouts/nav/#{sidebar}"
- elsif current_user
= render 'layouts/nav/dashboard'
- else
= render 'layouts/nav/explore'
- if defined?(nav) && nav
.layout-nav
.container-fluid
= render "layouts/nav/#{nav}"
.content-wrapper{ class: "#{layout_nav_class}" }
= yield :sub_nav
= render "layouts/broadcast"
= render "layouts/flash"
= yield :flash_message
2016-07-22 05:59:26 -04:00
%div{ class: "#{(container_class unless @no_container)} #{@content_class}" }
2016-11-17 09:12:20 -05:00
.content{ id: "content-body" }
2016-07-22 05:59:26 -04:00
= yield