BigW Consortium Gitlab

_page.html.haml 1.12 KB
Newer Older
1
.page-with-sidebar{ class: "#{page_sidebar_class} #{page_gutter_class}" }
2
  .sidebar-wrapper.nicescroll
3
    .sidebar-action-buttons
Fatih Acet committed
4
      .nav-header-btn.toggle-nav-collapse{ title: "Open/Close" }
5 6
        %span.sr-only Toggle navigation
        = icon('bars')
Fatih Acet committed
7 8

      %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' } }
9
        %span.sr-only Toggle navigation pinning
10
        = icon('fw thumb-tack')
11

12 13 14 15
    - if defined?(sidebar) && sidebar
      = render "layouts/nav/#{sidebar}"
    - elsif current_user
      = render 'layouts/nav/dashboard'
16
    - else
17
      = render 'layouts/nav/explore'
18

19 20
  - if defined?(nav) && nav
    .layout-nav
21
      .container-fluid
22
        = render "layouts/nav/#{nav}"
23
  .content-wrapper{ class: "#{layout_nav_class}" }
24
    = yield :sub_nav
25
    = render "layouts/broadcast"
26
    = render "layouts/flash"
27
    = yield :flash_message
Phil Hughes committed
28
    %div{ class: "#{(container_class unless @no_container)} #{@content_class}" }
29
      .content{ id: "content-body" }
Phil Hughes committed
30
        = yield