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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
2f1fd0d9
Commit
2f1fd0d9
authored
Dec 13, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ee-new-nav-tech-debt' into 'master'
EE- new nav tech debt See merge request gitlab-org/gitlab-ee!3695
parents
db10443a
31578c6e
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
17 additions
and
20 deletions
+17
-20
app/assets/javascripts/contextual_sidebar.js
app/assets/javascripts/contextual_sidebar.js
+1
-1
app/assets/javascripts/issuable_bulk_update_sidebar.js
app/assets/javascripts/issuable_bulk_update_sidebar.js
+1
-1
app/assets/javascripts/main.js
app/assets/javascripts/main.js
+2
-2
app/assets/javascripts/right_sidebar.js
app/assets/javascripts/right_sidebar.js
+4
-4
app/assets/stylesheets/framework/header.scss
app/assets/stylesheets/framework/header.scss
+0
-4
app/assets/stylesheets/framework/layout.scss
app/assets/stylesheets/framework/layout.scss
+3
-2
app/assets/stylesheets/pages/boards.scss
app/assets/stylesheets/pages/boards.scss
+1
-1
app/views/layouts/_page.html.haml
app/views/layouts/_page.html.haml
+2
-2
spec/ee/spec/features/epics/epics_list_spec.rb
spec/ee/spec/features/epics/epics_list_spec.rb
+2
-2
spec/javascripts/right_sidebar_spec.js
spec/javascripts/right_sidebar_spec.js
+1
-1
No files found.
app/assets/javascripts/contextual_sidebar.js
View file @
2f1fd0d9
...
@@ -9,7 +9,7 @@ export default class ContextualSidebar {
...
@@ -9,7 +9,7 @@ export default class ContextualSidebar {
}
}
initDomElements
()
{
initDomElements
()
{
this
.
$page
=
$
(
'
.
page-with-sidebar
'
);
this
.
$page
=
$
(
'
.
layout-page
'
);
this
.
$sidebar
=
$
(
'
.nav-sidebar
'
);
this
.
$sidebar
=
$
(
'
.nav-sidebar
'
);
this
.
$innerScroll
=
$
(
'
.nav-sidebar-inner-scroll
'
,
this
.
$sidebar
);
this
.
$innerScroll
=
$
(
'
.nav-sidebar-inner-scroll
'
,
this
.
$sidebar
);
this
.
$overlay
=
$
(
'
.mobile-overlay
'
);
this
.
$overlay
=
$
(
'
.mobile-overlay
'
);
...
...
app/assets/javascripts/issuable_bulk_update_sidebar.js
View file @
2f1fd0d9
...
@@ -21,7 +21,7 @@ export default class IssuableBulkUpdateSidebar {
...
@@ -21,7 +21,7 @@ export default class IssuableBulkUpdateSidebar {
}
}
initDomElements
()
{
initDomElements
()
{
this
.
$page
=
$
(
'
.
page-with-sidebar
'
);
this
.
$page
=
$
(
'
.
layout-page
'
);
this
.
$sidebar
=
$
(
'
.right-sidebar
'
);
this
.
$sidebar
=
$
(
'
.right-sidebar
'
);
this
.
$sidebarInnerContainer
=
this
.
$sidebar
.
find
(
'
.issuable-sidebar
'
);
this
.
$sidebarInnerContainer
=
this
.
$sidebar
.
find
(
'
.issuable-sidebar
'
);
this
.
$bulkEditCancelBtn
=
$
(
'
.js-bulk-update-menu-hide
'
);
this
.
$bulkEditCancelBtn
=
$
(
'
.js-bulk-update-menu-hide
'
);
...
...
app/assets/javascripts/main.js
View file @
2f1fd0d9
...
@@ -129,7 +129,7 @@ $(function () {
...
@@ -129,7 +129,7 @@ $(function () {
});
});
if
(
bootstrapBreakpoint
===
'
xs
'
)
{
if
(
bootstrapBreakpoint
===
'
xs
'
)
{
const
$rightSidebar
=
$
(
'
aside.right-sidebar, .
page-with-sidebar
'
);
const
$rightSidebar
=
$
(
'
aside.right-sidebar, .
layout-page
'
);
$rightSidebar
$rightSidebar
.
removeClass
(
'
right-sidebar-expanded
'
)
.
removeClass
(
'
right-sidebar-expanded
'
)
...
@@ -189,7 +189,7 @@ $(function () {
...
@@ -189,7 +189,7 @@ $(function () {
trigger
:
'
focus
'
,
trigger
:
'
focus
'
,
// set the viewport to the main content, excluding the navigation bar, so
// set the viewport to the main content, excluding the navigation bar, so
// the navigation can't overlap the popover
// the navigation can't overlap the popover
viewport
:
'
.
page-with-sidebar
'
viewport
:
'
.
layout-page
'
});
});
$
(
'
.trigger-submit
'
).
on
(
'
change
'
,
function
()
{
$
(
'
.trigger-submit
'
).
on
(
'
change
'
,
function
()
{
return
$
(
this
).
parents
(
'
form
'
).
submit
();
return
$
(
this
).
parents
(
'
form
'
).
submit
();
...
...
app/assets/javascripts/right_sidebar.js
View file @
2f1fd0d9
...
@@ -42,11 +42,11 @@ import Cookies from 'js-cookie';
...
@@ -42,11 +42,11 @@ import Cookies from 'js-cookie';
if
(
$thisIcon
.
hasClass
(
'
fa-angle-double-right
'
))
{
if
(
$thisIcon
.
hasClass
(
'
fa-angle-double-right
'
))
{
$allGutterToggleIcons
.
removeClass
(
'
fa-angle-double-right
'
).
addClass
(
'
fa-angle-double-left
'
);
$allGutterToggleIcons
.
removeClass
(
'
fa-angle-double-right
'
).
addClass
(
'
fa-angle-double-left
'
);
$
(
'
aside.right-sidebar
'
).
removeClass
(
'
right-sidebar-expanded
'
).
addClass
(
'
right-sidebar-collapsed
'
);
$
(
'
aside.right-sidebar
'
).
removeClass
(
'
right-sidebar-expanded
'
).
addClass
(
'
right-sidebar-collapsed
'
);
$
(
'
.
page-with-sidebar
'
).
removeClass
(
'
right-sidebar-expanded
'
).
addClass
(
'
right-sidebar-collapsed
'
);
$
(
'
.
layout-page
'
).
removeClass
(
'
right-sidebar-expanded
'
).
addClass
(
'
right-sidebar-collapsed
'
);
}
else
{
}
else
{
$allGutterToggleIcons
.
removeClass
(
'
fa-angle-double-left
'
).
addClass
(
'
fa-angle-double-right
'
);
$allGutterToggleIcons
.
removeClass
(
'
fa-angle-double-left
'
).
addClass
(
'
fa-angle-double-right
'
);
$
(
'
aside.right-sidebar
'
).
removeClass
(
'
right-sidebar-collapsed
'
).
addClass
(
'
right-sidebar-expanded
'
);
$
(
'
aside.right-sidebar
'
).
removeClass
(
'
right-sidebar-collapsed
'
).
addClass
(
'
right-sidebar-expanded
'
);
$
(
'
.
page-with-sidebar
'
).
removeClass
(
'
right-sidebar-collapsed
'
).
addClass
(
'
right-sidebar-expanded
'
);
$
(
'
.
layout-page
'
).
removeClass
(
'
right-sidebar-collapsed
'
).
addClass
(
'
right-sidebar-expanded
'
);
if
(
gl
.
lazyLoader
)
gl
.
lazyLoader
.
loadCheck
();
if
(
gl
.
lazyLoader
)
gl
.
lazyLoader
.
loadCheck
();
}
}
...
@@ -173,7 +173,7 @@ import Cookies from 'js-cookie';
...
@@ -173,7 +173,7 @@ import Cookies from 'js-cookie';
Sidebar
.
prototype
.
setCollapseAfterUpdate
=
function
(
$block
)
{
Sidebar
.
prototype
.
setCollapseAfterUpdate
=
function
(
$block
)
{
$block
.
addClass
(
'
collapse-after-update
'
);
$block
.
addClass
(
'
collapse-after-update
'
);
return
$
(
'
.
page-with-sidebar
'
).
addClass
(
'
with-overlay
'
);
return
$
(
'
.
layout-page
'
).
addClass
(
'
with-overlay
'
);
};
};
Sidebar
.
prototype
.
onSidebarDropdownHidden
=
function
(
e
)
{
Sidebar
.
prototype
.
onSidebarDropdownHidden
=
function
(
e
)
{
...
@@ -187,7 +187,7 @@ import Cookies from 'js-cookie';
...
@@ -187,7 +187,7 @@ import Cookies from 'js-cookie';
Sidebar
.
prototype
.
sidebarDropdownHidden
=
function
(
$block
)
{
Sidebar
.
prototype
.
sidebarDropdownHidden
=
function
(
$block
)
{
if
(
$block
.
hasClass
(
'
collapse-after-update
'
))
{
if
(
$block
.
hasClass
(
'
collapse-after-update
'
))
{
$block
.
removeClass
(
'
collapse-after-update
'
);
$block
.
removeClass
(
'
collapse-after-update
'
);
$
(
'
.
page-with-sidebar
'
).
removeClass
(
'
with-overlay
'
);
$
(
'
.
layout-page
'
).
removeClass
(
'
with-overlay
'
);
return
this
.
toggleSidebar
(
'
hide
'
);
return
this
.
toggleSidebar
(
'
hide
'
);
}
}
};
};
...
...
app/assets/stylesheets/framework/header.scss
View file @
2f1fd0d9
.content-wrapper.page-with-new-nav
{
margin-top
:
$header-height
;
}
.navbar-gitlab
{
.navbar-gitlab
{
&
.navbar-gitlab
{
&
.navbar-gitlab
{
padding
:
0
16px
;
padding
:
0
16px
;
...
...
app/assets/stylesheets/framework/layout.scss
View file @
2f1fd0d9
...
@@ -24,6 +24,7 @@ body {
...
@@ -24,6 +24,7 @@ body {
}
}
.content-wrapper
{
.content-wrapper
{
margin-top
:
$header-height
;
padding-bottom
:
100px
;
padding-bottom
:
100px
;
}
}
...
@@ -105,11 +106,11 @@ body {
...
@@ -105,11 +106,11 @@ body {
}
}
}
}
.
page-with-sidebar
>
.content-wrapper
{
.
layout-page
>
.content-wrapper
{
min-height
:
calc
(
100vh
-
#{
$header-height
}
);
min-height
:
calc
(
100vh
-
#{
$header-height
}
);
}
}
.with-performance-bar
.
page-with-sidebar
{
.with-performance-bar
.
layout-page
{
margin-top
:
$header-height
+
$performance-bar-height
;
margin-top
:
$header-height
+
$performance-bar-height
;
}
}
...
...
app/assets/stylesheets/pages/boards.scss
View file @
2f1fd0d9
...
@@ -482,7 +482,7 @@
...
@@ -482,7 +482,7 @@
border-top
:
1px
solid
$border-color
;
border-top
:
1px
solid
$border-color
;
}
}
.page-with-contextual-sidebar.
page-with-sidebar
.issue-boards-sidebar
{
.page-with-contextual-sidebar.
layout-page
.issue-boards-sidebar
{
.issuable-sidebar-header
{
.issuable-sidebar-header
{
position
:
relative
;
position
:
relative
;
}
}
...
...
app/views/layouts/_page.html.haml
View file @
2f1fd0d9
.
page-with-sidebar
{
class:
page_with_sidebar_class
}
.
layout-page
{
class:
page_with_sidebar_class
}
-
if
defined?
(
nav
)
&&
nav
-
if
defined?
(
nav
)
&&
nav
=
render
"layouts/nav/sidebar/
#{
nav
}
"
=
render
"layouts/nav/sidebar/
#{
nav
}
"
.content-wrapper
.page-with-new-nav
.content-wrapper
.mobile-overlay
.mobile-overlay
.alert-wrapper
.alert-wrapper
=
render
"layouts/header/ee_license_banner"
=
render
"layouts/header/ee_license_banner"
...
...
spec/ee/spec/features/epics/epics_list_spec.rb
View file @
2f1fd0d9
...
@@ -23,7 +23,7 @@ describe 'epics list', :js do
...
@@ -23,7 +23,7 @@ describe 'epics list', :js do
end
end
it
'renders the list correctly'
do
it
'renders the list correctly'
do
page
.
within
(
'.
page-with-new-nav
.content'
)
do
page
.
within
(
'.
content-wrapper
.content'
)
do
expect
(
find
(
'.top-area'
)).
to
have_content
(
'All 2'
)
expect
(
find
(
'.top-area'
)).
to
have_content
(
'All 2'
)
within
(
'.issuable-list'
)
do
within
(
'.issuable-list'
)
do
expect
(
page
).
to
have_content
(
epics
.
first
.
title
)
expect
(
page
).
to
have_content
(
epics
.
first
.
title
)
...
@@ -33,7 +33,7 @@ describe 'epics list', :js do
...
@@ -33,7 +33,7 @@ describe 'epics list', :js do
end
end
it
'renders the epic detail correctly after clicking the link'
do
it
'renders the epic detail correctly after clicking the link'
do
page
.
within
(
'.
page-with-new-nav
.content .issuable-list'
)
do
page
.
within
(
'.
content-wrapper
.content .issuable-list'
)
do
click_link
(
epics
.
first
.
title
)
click_link
(
epics
.
first
.
title
)
end
end
...
...
spec/javascripts/right_sidebar_spec.js
View file @
2f1fd0d9
...
@@ -41,7 +41,7 @@ import '~/right_sidebar';
...
@@ -41,7 +41,7 @@ import '~/right_sidebar';
loadFixtures
(
fixtureName
);
loadFixtures
(
fixtureName
);
this
.
sidebar
=
new
Sidebar
;
this
.
sidebar
=
new
Sidebar
;
$aside
=
$
(
'
.right-sidebar
'
);
$aside
=
$
(
'
.right-sidebar
'
);
$page
=
$
(
'
.
page-with-sidebar
'
);
$page
=
$
(
'
.
layout-page
'
);
$icon
=
$aside
.
find
(
'
i
'
);
$icon
=
$aside
.
find
(
'
i
'
);
$toggle
=
$aside
.
find
(
'
.js-sidebar-toggle
'
);
$toggle
=
$aside
.
find
(
'
.js-sidebar-toggle
'
);
return
$labelsIcon
=
$aside
.
find
(
'
.sidebar-collapsed-icon
'
);
return
$labelsIcon
=
$aside
.
find
(
'
.sidebar-collapsed-icon
'
);
...
...
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