debian-mirror-gitlab/app/views/layouts/_page.html.haml

31 lines
992 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
.page-with-sidebar{ class: nav_sidebar_class }
= render "layouts/broadcast"
.sidebar-wrapper.nicescroll
2015-09-25 12:07:36 +05:30
.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-24 18:46:33 +05:30
2015-09-11 14:41:01 +05:30
- if defined?(sidebar) && sidebar
= render "layouts/nav/#{sidebar}"
- elsif current_user
= render 'layouts/nav/dashboard'
2015-09-25 12:07:36 +05:30
- else
= render 'layouts/nav/explore'
2015-09-11 14:41:01 +05:30
.collapse-nav
= render partial: 'layouts/collapse_button'
- if current_user
= link_to current_user, class: 'sidebar-user' do
2015-10-24 18:46:33 +05:30
= image_tag avatar_icon(current_user, 60), alt: 'User activity', class: 'avatar avatar s36'
2015-09-11 14:41:01 +05:30
.username
= current_user.username
.content-wrapper
2015-09-25 12:07:36 +05:30
= render "layouts/flash"
2015-10-24 18:46:33 +05:30
= yield :flash_message
2015-09-25 12:07:36 +05:30
%div{ class: container_class }
2015-09-11 14:41:01 +05:30
.content
.clearfix
= yield