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
989ea86a
Commit
989ea86a
authored
Sep 27, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'winh-full-height-boards-sidebar-ee'
Make issue boards sidebar full height See merge request !2968
parents
cb2c2684
1e107dd5
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
38 additions
and
36 deletions
+38
-36
app/assets/javascripts/boards/boards_bundle.js
app/assets/javascripts/boards/boards_bundle.js
+3
-3
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+1
-0
app/assets/stylesheets/pages/boards.scss
app/assets/stylesheets/pages/boards.scss
+16
-15
app/assets/stylesheets/pages/issuable.scss
app/assets/stylesheets/pages/issuable.scss
+2
-2
app/views/shared/boards/_show.html.haml
app/views/shared/boards/_show.html.haml
+4
-4
app/views/shared/boards/_switcher.html.haml
app/views/shared/boards/_switcher.html.haml
+7
-7
app/views/shared/boards/components/_form.html.haml
app/views/shared/boards/components/_form.html.haml
+5
-5
No files found.
app/assets/javascripts/boards/boards_bundle.js
View file @
989ea86a
...
@@ -95,9 +95,6 @@ $(() => {
...
@@ -95,9 +95,6 @@ $(() => {
});
});
Store
.
rootPath
=
this
.
boardsEndpoint
;
Store
.
rootPath
=
this
.
boardsEndpoint
;
this
.
filterManager
=
new
FilteredSearchBoards
(
Store
.
filter
,
true
,
[(
this
.
milestoneTitle
?
'
milestone
'
:
null
)]);
this
.
filterManager
.
setup
();
// Listen for updateTokens event
// Listen for updateTokens event
eventHub
.
$on
(
'
updateTokens
'
,
this
.
updateTokens
);
eventHub
.
$on
(
'
updateTokens
'
,
this
.
updateTokens
);
},
},
...
@@ -105,6 +102,9 @@ $(() => {
...
@@ -105,6 +102,9 @@ $(() => {
eventHub
.
$off
(
'
updateTokens
'
,
this
.
updateTokens
);
eventHub
.
$off
(
'
updateTokens
'
,
this
.
updateTokens
);
},
},
mounted
()
{
mounted
()
{
this
.
filterManager
=
new
FilteredSearchBoards
(
Store
.
filter
,
true
,
[(
this
.
milestoneTitle
?
'
milestone
'
:
null
)]);
this
.
filterManager
.
setup
();
Store
.
disabled
=
this
.
disabled
;
Store
.
disabled
=
this
.
disabled
;
gl
.
boardService
.
all
()
gl
.
boardService
.
all
()
.
then
(
response
=>
response
.
json
())
.
then
(
response
=>
response
.
json
())
...
...
app/assets/stylesheets/framework/variables.scss
View file @
989ea86a
...
@@ -7,6 +7,7 @@ $gutter_inner_width: 250px;
...
@@ -7,6 +7,7 @@ $gutter_inner_width: 250px;
$sidebar-transition-duration
:
.15s
;
$sidebar-transition-duration
:
.15s
;
$sidebar-breakpoint
:
1024px
;
$sidebar-breakpoint
:
1024px
;
$default-transition-duration
:
.15s
;
$default-transition-duration
:
.15s
;
$right-sidebar-transition-duration
:
.3s
;
/*
/*
* Color schema
* Color schema
...
...
app/assets/stylesheets/pages/boards.scss
View file @
989ea86a
...
@@ -80,11 +80,25 @@
...
@@ -80,11 +80,25 @@
.boards-list
{
.boards-list
{
height
:
calc
(
100vh
-
50px
);
height
:
calc
(
100vh
-
50px
);
}
}
.issue-boards-sidebar
{
height
:
100%
;
top
:
0
;
}
}
}
}
}
.boards-app
{
.boards-app
{
position
:
relative
;
position
:
relative
;
@media
(
min-width
:
$screen-sm-min
)
{
transition
:
width
$right-sidebar-transition-duration
;
width
:
100%
;
&
.is-compact
{
width
:
calc
(
100%
-
#{
$gutter_width
}
);
}
}
}
}
.boards-app-loading
{
.boards-app-loading
{
...
@@ -108,11 +122,6 @@
...
@@ -108,11 +122,6 @@
height
:
calc
(
100vh
-
222px
);
height
:
calc
(
100vh
-
222px
);
// scss-lint:enable DuplicateProperty
// scss-lint:enable DuplicateProperty
min-height
:
475px
;
min-height
:
475px
;
transition
:
width
.2s
;
&
.is-compact
{
width
:
calc
(
100%
-
290px
);
}
}
}
}
}
...
@@ -469,14 +478,6 @@
...
@@ -469,14 +478,6 @@
.page-with-layout-nav.page-with-sub-nav
.issue-boards-sidebar
,
.page-with-layout-nav.page-with-sub-nav
.issue-boards-sidebar
,
.page-with-new-sidebar.page-with-sidebar
.issue-boards-sidebar
{
.page-with-new-sidebar.page-with-sidebar
.issue-boards-sidebar
{
position
:
absolute
;
&
.right-sidebar
{
top
:
0
;
bottom
:
0
;
height
:
100%
;
}
.issuable-sidebar-header
{
.issuable-sidebar-header
{
position
:
relative
;
position
:
relative
;
}
}
...
@@ -514,8 +515,8 @@
...
@@ -514,8 +515,8 @@
.right-sidebar.right-sidebar-expanded
{
.right-sidebar.right-sidebar-expanded
{
&
.boards-sidebar-slide-enter-active
,
&
.boards-sidebar-slide-enter-active
,
&
.boards-sidebar-slide-leave-active
{
&
.boards-sidebar-slide-leave-active
{
transition
:
width
.2s
,
transition
:
width
$right-sidebar-transition-duration
,
padding
.2s
;
padding
$right-sidebar-transition-duration
;
}
}
&
.boards-sidebar-slide-enter
,
&
.boards-sidebar-slide-enter
,
...
...
app/assets/stylesheets/pages/issuable.scss
View file @
989ea86a
...
@@ -223,14 +223,14 @@
...
@@ -223,14 +223,14 @@
top
:
$new-navbar-height
;
top
:
$new-navbar-height
;
bottom
:
0
;
bottom
:
0
;
right
:
0
;
right
:
0
;
transition
:
width
.3s
;
transition
:
width
$right-sidebar-transition-duration
;
background
:
$gray-light
;
background
:
$gray-light
;
z-index
:
200
;
z-index
:
200
;
overflow
:
hidden
;
overflow
:
hidden
;
.issuable-sidebar
{
.issuable-sidebar
{
width
:
calc
(
100%
+
100px
);
width
:
calc
(
100%
+
100px
);
height
:
calc
(
100%
-
#{
$new-navbar-height
}
)
;
height
:
100%
;
overflow-y
:
scroll
;
overflow-y
:
scroll
;
overflow-x
:
hidden
;
overflow-x
:
hidden
;
-webkit-overflow-scrolling
:
touch
;
-webkit-overflow-scrolling
:
touch
;
...
...
app/views/shared/boards/_show.html.haml
View file @
989ea86a
...
@@ -14,11 +14,11 @@
...
@@ -14,11 +14,11 @@
%script
#js-board-modal-filter
{
type:
"text/x-template"
}=
render
"shared/issuable/search_bar"
,
type: :boards_modal
%script
#js-board-modal-filter
{
type:
"text/x-template"
}=
render
"shared/issuable/search_bar"
,
type: :boards_modal
%script
#js-board-promotion
{
type:
"text/x-template"
}=
render
"shared/promotions/promote_issue_board"
%script
#js-board-promotion
{
type:
"text/x-template"
}=
render
"shared/promotions/promote_issue_board"
.hidden-xs.hidden-sm
#board-app
.boards-app
{
"v-cloak"
=>
true
,
data:
board_data
,
":class"
=>
"{ 'is-compact': detailIssueVisible }"
}
.hidden-xs.hidden-sm
=
render
'shared/issuable/search_bar'
,
type: :boards
,
board:
board
=
render
'shared/issuable/search_bar'
,
type: :boards
,
board:
board
#board-app
.boards-app
{
"v-cloak"
=>
true
,
data:
board_data
}
.boards-list
.boards-list
{
":class"
=>
"{ 'is-compact': detailIssueVisible }"
}
.boards-app-loading.text-center
{
"v-if"
=>
"loading"
}
.boards-app-loading.text-center
{
"v-if"
=>
"loading"
}
=
icon
(
"spinner spin"
)
=
icon
(
"spinner spin"
)
%board
{
"v-cloak"
=>
true
,
%board
{
"v-cloak"
=>
true
,
...
...
app/views/shared/boards/_switcher.html.haml
View file @
989ea86a
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
":current-board"
=>
current_board_json
,
":current-board"
=>
current_board_json
,
"milestone-path"
=>
milestones_filter_path
(
milestone_filter_opts
)
}
"milestone-path"
=>
milestones_filter_path
(
milestone_filter_opts
)
}
.dropdown
.dropdown
%button
.dropdown-menu-toggle
{
"
@
click"
=>
"loadBoards"
,
%button
.dropdown-menu-toggle
{
"
v-on:
click"
=>
"loadBoards"
,
data:
{
toggle:
"dropdown"
}
}
data:
{
toggle:
"dropdown"
}
}
{{ board.name }}
{{ board.name }}
=
icon
(
"chevron-down"
)
=
icon
(
"chevron-down"
)
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
.dropdown-title
.dropdown-title
%button
.dropdown-title-button.dropdown-menu-back
{
type:
"button"
,
%button
.dropdown-title-button.dropdown-menu-back
{
type:
"button"
,
aria:
{
label:
"Go back"
},
aria:
{
label:
"Go back"
},
"
@
click.stop.prevent"
=>
"showPage('')"
,
"
v-on:
click.stop.prevent"
=>
"showPage('')"
,
"v-if"
=>
"currentPage !== ''"
}
"v-if"
=>
"currentPage !== ''"
}
=
icon
(
"arrow-left"
)
=
icon
(
"arrow-left"
)
{{ title }}
{{ title }}
...
@@ -45,23 +45,23 @@
...
@@ -45,23 +45,23 @@
method: :delete
do
method: :delete
do
Delete
Delete
%button
.btn.btn-default.pull-right
{
type:
"button"
,
%button
.btn.btn-default.pull-right
{
type:
"button"
,
"
@
click.stop.prevent"
=>
"showPage('')"
}
"
v-on:
click.stop.prevent"
=>
"showPage('')"
}
Cancel
Cancel
-
if
can?
(
current_user
,
:admin_board
,
parent
)
-
if
can?
(
current_user
,
:admin_board
,
parent
)
.dropdown-footer
{
"v-if"
=>
"currentPage === ''"
}
.dropdown-footer
{
"v-if"
=>
"currentPage === ''"
}
%ul
.dropdown-footer-list
%ul
.dropdown-footer-list
-
if
parent
.
feature_available?
(
:multiple_issue_boards
)
-
if
parent
.
feature_available?
(
:multiple_issue_boards
)
%li
%li
%a
{
"href"
=>
"#"
,
"
@
click.stop.prevent"
=>
"showPage('new')"
}
%a
{
"href"
=>
"#"
,
"
v-on:
click.stop.prevent"
=>
"showPage('new')"
}
Create new board
Create new board
%li
%li
%a
{
"href"
=>
"#"
,
"
@
click.stop.prevent"
=>
"showPage('edit')"
}
%a
{
"href"
=>
"#"
,
"
v-on:
click.stop.prevent"
=>
"showPage('edit')"
}
Edit board name
Edit board name
-
if
parent
.
issue_board_milestone_available?
(
current_user
)
-
if
parent
.
issue_board_milestone_available?
(
current_user
)
%li
%li
%a
{
"href"
=>
"#"
,
"
@
click.stop.prevent"
=>
"showPage('milestone')"
}
%a
{
"href"
=>
"#"
,
"
v-on:
click.stop.prevent"
=>
"showPage('milestone')"
}
Edit board milestone
Edit board milestone
%li
{
"v-if"
=>
"showDelete"
}
%li
{
"v-if"
=>
"showDelete"
}
%a
{
"href"
=>
"#"
,
"
@
click.stop.prevent"
=>
"showPage('delete')"
}
%a
{
"href"
=>
"#"
,
"
v-on:
click.stop.prevent"
=>
"showPage('delete')"
}
%span
.text-danger
%span
.text-danger
Delete board
Delete board
app/views/shared/boards/components/_form.html.haml
View file @
989ea86a
.board-selector-page-two
.board-selector-page-two
%form
{
"
@
submit.prevent"
=>
"submit"
}
%form
{
"
v-on:
submit.prevent"
=>
"submit"
}
.dropdown-content
.dropdown-content
%input
{
type:
"hidden"
,
%input
{
type:
"hidden"
,
id:
"board-milestone"
,
id:
"board-milestone"
,
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
%label
.label-light
{
for:
"board-milestone"
}
%label
.label-light
{
for:
"board-milestone"
}
Board milestone
Board milestone
%button
.dropdown-menu-toggle.wide
{
type:
"button"
,
%button
.dropdown-menu-toggle.wide
{
type:
"button"
,
"
@
click.stop.prevent"
=>
"loadMilestones($event)"
}
"
v-on:
click.stop.prevent"
=>
"loadMilestones($event)"
}
{{ milestoneToggleText }}
{{ milestoneToggleText }}
=
icon
(
"chevron-down"
)
=
icon
(
"chevron-down"
)
.dropdown-menu.dropdown-menu-selectable
{
"v-if"
=>
"milestoneDropdownOpen"
,
.dropdown-menu.dropdown-menu-selectable
{
"v-if"
=>
"milestoneDropdownOpen"
,
...
@@ -26,13 +26,13 @@
...
@@ -26,13 +26,13 @@
%li
{
"v-for"
=>
"milestone in extraMilestones"
}
%li
{
"v-for"
=>
"milestone in extraMilestones"
}
%a
{
href:
"#"
,
%a
{
href:
"#"
,
":class"
=>
"{ 'is-active': milestone.id === board.milestone_id }"
,
":class"
=>
"{ 'is-active': milestone.id === board.milestone_id }"
,
"
@
click.stop.prevent"
=>
"selectMilestone(milestone)"
}
"
v-on:
click.stop.prevent"
=>
"selectMilestone(milestone)"
}
{{ milestone.title }}
{{ milestone.title }}
%li
.divider
%li
.divider
%li
{
"v-for"
=>
"milestone in milestones"
}
%li
{
"v-for"
=>
"milestone in milestones"
}
%a
{
href:
"#"
,
%a
{
href:
"#"
,
":class"
=>
"{ 'is-active': milestone.id === board.milestone_id }"
,
":class"
=>
"{ 'is-active': milestone.id === board.milestone_id }"
,
"
@
click.stop.prevent"
=>
"selectMilestone(milestone)"
}
"
v-on:
click.stop.prevent"
=>
"selectMilestone(milestone)"
}
{{ milestone.title }}
{{ milestone.title }}
=
dropdown_loading
=
dropdown_loading
%span
%span
...
@@ -47,5 +47,5 @@
...
@@ -47,5 +47,5 @@
"ref"
=>
"'submit-btn'"
}
"ref"
=>
"'submit-btn'"
}
{{ buttonText }}
{{ buttonText }}
%button
.btn.btn-default.pull-right
{
type:
"button"
,
%button
.btn.btn-default.pull-right
{
type:
"button"
,
"
@
click.stop.prevent"
=>
"cancel"
}
"
v-on:
click.stop.prevent"
=>
"cancel"
}
Cancel
Cancel
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