2016-01-27 22:38:19 +00:00
|
|
|
.page-with-sidebar{ class: "#{page_sidebar_class} #{page_gutter_class}" }
|
2015-12-02 13:05:10 +00:00
|
|
|
.sidebar-wrapper.nicescroll{ class: nav_sidebar_class }
|
2015-08-26 11:15:02 +00:00
|
|
|
.header-logo
|
2016-02-03 17:18:55 +00:00
|
|
|
%a#logo
|
2015-08-26 11:15:02 +00:00
|
|
|
= brand_header_logo
|
2016-03-01 15:18:05 +00:00
|
|
|
= link_to root_path, class: 'gitlab-text-container-link', title: 'Dashboard', id: 'js-shortcuts-home' do
|
2015-08-26 11:15:02 +00:00
|
|
|
.gitlab-text-container
|
|
|
|
%h3 GitLab
|
2015-10-13 11:03:27 +00:00
|
|
|
|
2016-04-07 21:20:16 +00:00
|
|
|
- if defined?(sidebar) && sidebar
|
|
|
|
= render "layouts/nav/#{sidebar}"
|
|
|
|
- elsif current_user
|
|
|
|
= render 'layouts/nav/dashboard'
|
2015-09-08 13:49:20 +00:00
|
|
|
- else
|
2016-04-07 21:20:16 +00:00
|
|
|
= render 'layouts/nav/explore'
|
2015-09-08 13:49:20 +00:00
|
|
|
|
2015-04-22 17:10:38 +00:00
|
|
|
.collapse-nav
|
2016-04-07 21:20:16 +00:00
|
|
|
= render partial: 'layouts/collapse_button'
|
2015-05-27 11:17:14 +00:00
|
|
|
- if current_user
|
2015-12-02 13:05:10 +00:00
|
|
|
= link_to current_user, class: 'sidebar-user', title: "Profile" do
|
|
|
|
= image_tag avatar_icon(current_user, 60), alt: 'Profile', class: 'avatar avatar s36'
|
2015-05-27 11:17:14 +00:00
|
|
|
.username
|
|
|
|
= current_user.username
|
2016-04-28 12:23:25 +00:00
|
|
|
- if defined?(nav) && nav
|
|
|
|
.layout-nav
|
|
|
|
.container-fluid
|
|
|
|
= render "layouts/nav/#{nav}"
|
2016-05-13 16:12:49 +00:00
|
|
|
.content-wrapper{ class: "#{layout_nav_class} #{layout_dropdown_class}" }
|
2016-05-12 21:22:21 +00:00
|
|
|
= render "layouts/broadcast"
|
2015-09-07 09:58:19 +00:00
|
|
|
= render "layouts/flash"
|
2015-10-13 11:03:27 +00:00
|
|
|
= yield :flash_message
|
2016-01-13 13:27:36 +00:00
|
|
|
%div{ class: (container_class unless @no_container) }
|
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
|