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

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

17 18
    .collapse-nav
      = 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
  .content-wrapper
25
    = render "layouts/flash"
26
    = yield :flash_message
27
    %div{ class: (container_class unless @no_container) }
28
      .content
29
        .clearfix
30
          = yield
31 32 33 34 35 36
    .about-footer
      = link_to "GitLab Nexedi Edition", "https://lab.nexedi.com/nexedi/slapos/blob/master/software/gitlab/software.cfg"
      |
      = link_to "About GitLab", "https://about.gitlab.com/"
      |
      = link_to "About Nexedi", "http://nexedi.com/"