Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
28639a19
Commit
28639a19
authored
Apr 22, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
For navless pages render dashboard nav
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
47d26b05
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
25 deletions
+21
-25
app/views/layouts/_empty_head_panel.html.haml
app/views/layouts/_empty_head_panel.html.haml
+5
-0
app/views/layouts/_page.html.haml
app/views/layouts/_page.html.haml
+14
-16
app/views/layouts/devise.html.haml
app/views/layouts/devise.html.haml
+1
-5
app/views/layouts/navless.html.haml
app/views/layouts/navless.html.haml
+1
-4
No files found.
app/views/layouts/_empty_head_panel.html.haml
0 → 100644
View file @
28639a19
%header
.navbar.navbar-fixed-top.navbar-gitlab
.navbar-inner
.container
%h4
.center
=
image_tag
'logo-white.png'
,
width:
32
,
height:
32
app/views/layouts/_page.html.haml
View file @
28639a19
-
if
defined?
(
sidebar
)
.page-with-sidebar
{
class:
nav_sidebar_class
}
=
render
"layouts/broadcast"
.sidebar-wrapper
.page-with-sidebar
{
class:
nav_sidebar_class
}
=
render
"layouts/broadcast"
.sidebar-wrapper
-
if
defined?
(
sidebar
)
=
render
(
sidebar
)
.collapse-nav
=
render
partial:
'layouts/collapse_button'
.content-wrapper
.container-fluid
.content
=
render
"layouts/flash"
.clearfix
=
yield
-
else
.container.navless-container
.content
=
yield
-
else
=
render
'layouts/nav/dashboard'
.collapse-nav
=
render
partial:
'layouts/collapse_button'
.content-wrapper
.container-fluid
.content
=
render
"layouts/flash"
.clearfix
=
yield
=
yield
:embedded_scripts
...
...
app/views/layouts/devise.html.haml
View file @
28639a19
...
...
@@ -2,11 +2,7 @@
%html
{
lang:
"en"
}
=
render
"layouts/head"
%body
.ui_mars.login-page.application
%header
.navbar.navbar-fixed-top.navbar-gitlab
.navbar-inner
.container
%h4
.center
=
image_tag
'logo-white.png'
,
width:
32
,
height:
32
=
render
"layouts/empty_head_panel"
=
render
"layouts/broadcast"
.container.navless-container
.content
...
...
app/views/layouts/navless.html.haml
View file @
28639a19
...
...
@@ -4,7 +4,4 @@
%body
{
class:
"#{app_theme} application"
,
:'data-page'
=>
body_data_page
}
=
render
"layouts/broadcast"
=
render
"layouts/head_panel"
,
title:
defined?
(
@title_url
)
?
link_to
(
@title
,
@title_url
)
:
@title
.container.navless-container
.content
=
render
"layouts/flash"
=
yield
=
render
'layouts/page'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment