2015-04-22 17:10:38 +00:00
|
|
|
.page-with-sidebar{ class: nav_sidebar_class }
|
|
|
|
= render "layouts/broadcast"
|
2015-07-14 10:29:57 +00:00
|
|
|
.sidebar-wrapper.nicescroll
|
2015-08-26 11:15:02 +00:00
|
|
|
.header-logo
|
|
|
|
= link_to root_path, class: 'home', title: 'Dashboard', id: 'js-shortcuts-home', data: {toggle: 'tooltip', placement: 'bottom'} do
|
|
|
|
= brand_header_logo
|
|
|
|
.gitlab-text-container
|
|
|
|
%h3 GitLab
|
2015-04-30 17:06:18 +00:00
|
|
|
- if defined?(sidebar) && sidebar
|
|
|
|
= render "layouts/nav/#{sidebar}"
|
2015-04-23 08:51:17 +00:00
|
|
|
- elsif current_user
|
2015-04-22 17:10:38 +00:00
|
|
|
= render 'layouts/nav/dashboard'
|
|
|
|
.collapse-nav
|
|
|
|
= render partial: 'layouts/collapse_button'
|
2015-05-27 11:17:14 +00:00
|
|
|
- if current_user
|
2015-06-08 13:50:26 +00:00
|
|
|
= link_to current_user, class: 'sidebar-user' do
|
2015-09-04 19:36:56 +00:00
|
|
|
= image_tag avatar_icon(current_user.email, 60), alt: 'User activity', class: 'avatar avatar s36'
|
2015-05-27 11:17:14 +00:00
|
|
|
.username
|
|
|
|
= current_user.username
|
2015-04-22 17:10:38 +00:00
|
|
|
.content-wrapper
|
2015-08-26 09:51:28 +00:00
|
|
|
%div{ class: fluid_layout ? "container-fluid" : "container-fluid container-limited" }
|
2015-04-22 17:10:38 +00:00
|
|
|
.content
|
|
|
|
= render "layouts/flash"
|
|
|
|
.clearfix
|
|
|
|
= yield
|