For navless pages render dashboard nav

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-04-22 20:10:38 +03:00
parent 47d26b05a4
commit 28639a1971
No known key found for this signature in database
GPG key ID: 161B5D6A44D3D88A
4 changed files with 21 additions and 25 deletions

View file

@ -0,0 +1,5 @@
%header.navbar.navbar-fixed-top.navbar-gitlab
.navbar-inner
.container
%h4.center
= image_tag 'logo-white.png', width: 32, height: 32

View file

@ -1,20 +1,18 @@
- if defined?(sidebar) .page-with-sidebar{ class: nav_sidebar_class }
.page-with-sidebar{ class: nav_sidebar_class } = render "layouts/broadcast"
= render "layouts/broadcast" .sidebar-wrapper
.sidebar-wrapper - if defined?(sidebar)
= render(sidebar) = render(sidebar)
.collapse-nav - else
= render partial: 'layouts/collapse_button' = render 'layouts/nav/dashboard'
.content-wrapper .collapse-nav
.container-fluid = render partial: 'layouts/collapse_button'
.content .content-wrapper
= render "layouts/flash" .container-fluid
.clearfix .content
= yield = render "layouts/flash"
- else .clearfix
.container.navless-container = yield
.content
= yield
= yield :embedded_scripts = yield :embedded_scripts

View file

@ -2,11 +2,7 @@
%html{ lang: "en"} %html{ lang: "en"}
= render "layouts/head" = render "layouts/head"
%body.ui_mars.login-page.application %body.ui_mars.login-page.application
%header.navbar.navbar-fixed-top.navbar-gitlab = render "layouts/empty_head_panel"
.navbar-inner
.container
%h4.center
= image_tag 'logo-white.png', width: 32, height: 32
= render "layouts/broadcast" = render "layouts/broadcast"
.container.navless-container .container.navless-container
.content .content

View file

@ -4,7 +4,4 @@
%body{class: "#{app_theme} application", :'data-page' => body_data_page} %body{class: "#{app_theme} application", :'data-page' => body_data_page}
= render "layouts/broadcast" = render "layouts/broadcast"
= render "layouts/head_panel", title: defined?(@title_url) ? link_to(@title, @title_url) : @title = render "layouts/head_panel", title: defined?(@title_url) ? link_to(@title, @title_url) : @title
.container.navless-container = render 'layouts/page'
.content
= render "layouts/flash"
= yield