BigW Consortium Gitlab

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

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

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