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-10-13 11:03:27 +00:00
|
|
|
|
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'
|
2015-09-08 13:49:20 +00:00
|
|
|
- else
|
|
|
|
= render 'layouts/nav/explore'
|
|
|
|
|
2015-04-22 17:10:38 +00:00
|
|
|
.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-10-12 15:03:12 +00:00
|
|
|
= image_tag avatar_icon(current_user, 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-09-07 09:58:19 +00:00
|
|
|
= render "layouts/flash"
|
2015-10-13 11:03:27 +00:00
|
|
|
= yield :flash_message
|
2015-09-09 21:29:19 +00:00
|
|
|
%div{ class: container_class }
|
2015-04-22 17:10:38 +00:00
|
|
|
.content
|
2015-10-05 11:59:01 +00:00
|
|
|
.clearfix
|
2015-04-22 17:10:38 +00:00
|
|
|
= yield
|