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
Jérome Perrin
gitlab-ce
Commits
12869a9e
Commit
12869a9e
authored
Mar 24, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move progress bar from milestone summary into the sidebar
parent
d3de86c6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
57 deletions
+35
-57
app/assets/stylesheets/pages/milestone.scss
app/assets/stylesheets/pages/milestone.scss
+25
-38
app/views/dashboard/milestones/show.html.haml
app/views/dashboard/milestones/show.html.haml
+0
-1
app/views/groups/milestones/show.html.haml
app/views/groups/milestones/show.html.haml
+0
-1
app/views/projects/milestones/show.html.haml
app/views/projects/milestones/show.html.haml
+0
-1
app/views/shared/milestones/_sidebar.html.haml
app/views/shared/milestones/_sidebar.html.haml
+10
-3
app/views/shared/milestones/_summary.html.haml
app/views/shared/milestones/_summary.html.haml
+0
-13
No files found.
app/assets/stylesheets/pages/milestone.scss
View file @
12869a9e
...
...
@@ -53,6 +53,21 @@
}
.milestone-sidebar
{
.gutter-toggle
{
margin-bottom
:
10px
;
}
.milestone-progress
{
.title
{
padding-top
:
5px
;
}
.progress
{
height
:
6px
;
margin
:
0
;
}
}
.remaining-days
strong
{
font-weight
:
normal
;
}
...
...
@@ -67,50 +82,22 @@
margin-right
:
0
;
}
.right-sidebar-collapsed
&
{
.reference
{
border-top
:
1px
solid
$border-gray-normal
;
}
}
}
.milestone-summary
{
.milestone-stat
{
white-space
:
nowrap
;
margin-right
:
10px
;
&
.with-drilldown
{
margin-right
:
2px
;
}
}
.milestone-stats-and-buttons
{
display
:
flex
;
justify-content
:
flex-start
;
flex-wrap
:
wrap
;
.milestone-progress
{
.sidebar-collapsed-icon
{
clear
:
both
;
padding
:
15px
5px
5px
;
@media
(
min-width
:
$screen-xs-min
)
{
justify-content
:
space-between
;
flex-wrap
:
nowrap
;
.progress
{
margin
:
5px
0
;
}
}
}
.milestone-stats
{
order
:
2
;
width
:
100%
;
padding
:
7px
0
;
flex-shrink
:
1
;
@media
(
min-width
:
$screen-xs-min
)
{
// when displayed on one line stats go first, buttons second
order
:
1
;
.right-sidebar-collapsed
&
{
.reference
{
border-top
:
1px
solid
$border-gray-normal
;
}
}
.progress
{
width
:
100%
;
margin
:
15px
0
;
}
}
.issues-sortable-list
,
...
...
app/views/dashboard/milestones/show.html.haml
View file @
12869a9e
-
header_title
"Milestones"
,
dashboard_milestones_path
=
render
'shared/milestones/top'
,
milestone:
@milestone
=
render
'shared/milestones/summary'
,
milestone:
@milestone
=
render
'shared/milestones/tabs'
,
milestone:
@milestone
,
show_full_project_name:
true
=
render
'shared/milestones/sidebar'
,
milestone:
@milestone
,
affix_offset:
51
app/views/groups/milestones/show.html.haml
View file @
12869a9e
...
...
@@ -4,6 +4,5 @@
=
page_specific_javascript_bundle_tag
(
'simulate_drag'
)
if
Rails
.
env
.
test?
=
render
'shared/milestones/top'
,
milestone:
@milestone
,
group:
@group
=
render
'shared/milestones/summary'
,
milestone:
@milestone
=
render
'shared/milestones/tabs'
,
milestone:
@milestone
,
show_project_name:
true
=
render
'shared/milestones/sidebar'
,
milestone:
@milestone
,
affix_offset:
102
app/views/projects/milestones/show.html.haml
View file @
12869a9e
...
...
@@ -56,6 +56,5 @@
.alert.alert-success.prepend-top-default
%span
All issues for this milestone are closed. You may close this milestone now.
=
render
'shared/milestones/summary'
,
milestone:
@milestone
,
project:
@project
=
render
'shared/milestones/tabs'
,
milestone:
@milestone
=
render
'shared/milestones/sidebar'
,
milestone:
@milestone
,
project:
@project
,
affix_offset:
153
app/views/shared/milestones/_sidebar.html.haml
View file @
12869a9e
...
...
@@ -3,12 +3,19 @@
%aside
.right-sidebar.js-right-sidebar
{
data:
{
"offset-top"
=>
affix_offset
,
"spy"
=>
"affix"
},
class:
sidebar_gutter_collapsed_class
,
'aria-live'
=>
'polite'
}
.issuable-sidebar.milestone-sidebar
.block.issuable-sidebar-header
.block.
milestone-progress.
issuable-sidebar-header
%a
.gutter-toggle.pull-right.js-sidebar-toggle
{
role:
"button"
,
href:
"#"
,
"aria-label"
=>
"Toggle sidebar"
}
=
sidebar_gutter_toggle_icon
%span
.issuable-header-text.hide-collapsed
Milestone
#{
milestone
.
try
(
:to_reference
)
||
milestone
.
title
}
.sidebar-collapsed-icon
%span
==
#{
milestone
.
percent_complete
(
current_user
)
}
%
=
milestone_progress_bar
(
milestone
)
.title.hide-collapsed
%strong
==
#{
milestone
.
percent_complete
(
current_user
)
}
%
%span
.hide-collapsed
complete
.value.hide-collapsed
=
milestone_progress_bar
(
milestone
)
-
if
project
.block.due_date
...
...
app/views/shared/milestones/_summary.html.haml
deleted
100644 → 0
View file @
d3de86c6
-
project
=
local_assigns
[
:project
]
.context.prepend-top-default
.milestone-summary
%h4
Progress
.milestone-stats-and-buttons
.milestone-stats
%span
.milestone-stat
%strong
==
#{
milestone
.
percent_complete
(
current_user
)
}
%
complete
=
milestone_progress_bar
(
milestone
)
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