_page.html.haml 1.18 KB
Newer Older
1
.page-with-sidebar{ class: "#{page_sidebar_class} #{page_gutter_class}" }
2
  .sidebar-wrapper.nicescroll{ class: nav_sidebar_class }
3
    .header-logo
4
      %a#logo
5
        = brand_header_logo
6
      = link_to root_path, class: 'gitlab-text-container-link', title: 'Dashboard', id: 'js-shortcuts-home' do
7 8
        .gitlab-text-container
          %h3 GitLab
9

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

17
    .collapse-nav
18
      = render partial: 'layouts/collapse_button'
19
    - if current_user
20 21
      = link_to current_user, class: 'sidebar-user', title: "Profile" do
        = image_tag avatar_icon(current_user, 60), alt: 'Profile', class: 'avatar avatar s36'
22 23
        .username
          = current_user.username
24 25 26 27
  - if defined?(nav) && nav
    .layout-nav
      .container-fluid
        = render "layouts/nav/#{nav}"
28
  .content-wrapper{ class: "#{layout_nav_class}" }
29
    = render "layouts/broadcast"
30
    = render "layouts/flash"
31
    = yield :flash_message
32
    %div{ class: (container_class unless @no_container) }
33
      .content
34
        .clearfix
35
          = yield