For navless pages render dashboard nav
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
47d26b05a4
commit
28639a1971
4 changed files with 21 additions and 25 deletions
5
app/views/layouts/_empty_head_panel.html.haml
Normal file
5
app/views/layouts/_empty_head_panel.html.haml
Normal 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
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in a new issue