Refactor header views
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
46e3d13eac
commit
e7e07fab5d
|
@ -1,23 +0,0 @@
|
|||
%header.navbar.navbar-fixed-top.navbar-gitlab{ class: nav_header_class }
|
||||
.container
|
||||
.header-logo
|
||||
= link_to explore_root_path, class: "home" do
|
||||
= brand_header_logo
|
||||
%h3 GitLab
|
||||
.header-content
|
||||
%h1.title= title
|
||||
|
||||
%button.navbar-toggle{"data-target" => ".navbar-collapse", "data-toggle" => "collapse", type: "button"}
|
||||
%span.sr-only Toggle navigation
|
||||
%i.fa.fa-bars
|
||||
|
||||
- unless current_controller?('sessions')
|
||||
.pull-right.hidden-xs
|
||||
= link_to "Sign in", new_session_path(:user, redirect_to_referer: 'yes'), class: 'btn btn-sign-in btn-new append-right-10'
|
||||
|
||||
.navbar-collapse.collapse
|
||||
%ul.nav.navbar-nav
|
||||
%li.visible-xs
|
||||
= link_to "Sign in", new_session_path(:user, redirect_to_referer: 'yes')
|
||||
|
||||
= render 'shared/outdated_browser'
|
|
@ -3,8 +3,8 @@
|
|||
= render "layouts/head"
|
||||
%body{class: "#{app_theme}", :'data-page' => body_data_page}
|
||||
- if current_user
|
||||
= render "layouts/head_panel", title: header_title
|
||||
= render "layouts/header/default", title: header_title
|
||||
- else
|
||||
= render "layouts/public_head_panel", title: header_title
|
||||
= render "layouts/header/public", title: header_title
|
||||
|
||||
= render 'layouts/page', sidebar: sidebar
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
%html{ lang: "en"}
|
||||
= render "layouts/head"
|
||||
%body.ui_mars.login-page.application
|
||||
= render "layouts/empty_head_panel"
|
||||
= render "layouts/header/empty"
|
||||
= render "layouts/broadcast"
|
||||
.container.navless-container
|
||||
.content
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
%html{ lang: "en"}
|
||||
= render "layouts/head"
|
||||
%body{class: "#{app_theme} application"}
|
||||
= render "layouts/empty_head_panel"
|
||||
= render "layouts/header/empty"
|
||||
.container.navless-container
|
||||
= render "layouts/flash"
|
||||
.error-page
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
%header.navbar.navbar-fixed-top.navbar-gitlab{ class: nav_header_class }
|
||||
.container
|
||||
.header-logo
|
||||
= link_to explore_root_path, class: "home" do
|
||||
= brand_header_logo
|
||||
%h3 GitLab
|
||||
.header-content
|
||||
%h1.title= title
|
||||
|
||||
- unless current_controller?('sessions')
|
||||
.pull-right
|
||||
= link_to "Sign in", new_session_path(:user, redirect_to_referer: 'yes'), class: 'btn btn-sign-in btn-success btn-sm'
|
||||
|
||||
= render 'shared/outdated_browser'
|
Loading…
Reference in New Issue