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
Boxiang Sun
gitlab-ce
Commits
518eefcb
Commit
518eefcb
authored
Jun 18, 2018
by
Constance Okoghenun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated placement of milestone actions in milestone list
parent
bee7f064
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
36 deletions
+37
-36
app/assets/stylesheets/pages/milestone.scss
app/assets/stylesheets/pages/milestone.scss
+1
-1
app/views/shared/milestones/_milestone.html.haml
app/views/shared/milestones/_milestone.html.haml
+36
-35
No files found.
app/assets/stylesheets/pages/milestone.scss
View file @
518eefcb
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
border-radius
:
$border-radius-default
;
border-radius
:
$border-radius-default
;
background-color
:
$white-light
;
background-color
:
$white-light
;
&
:not
(
:last-child
)
{
&
:not
(
:last-child
)
{
margin-bottom
:
$gl-padding-8
;
margin-bottom
:
$gl-padding-8
;
}
}
...
...
app/views/shared/milestones/_milestone.html.haml
View file @
518eefcb
...
@@ -10,40 +10,14 @@
...
@@ -10,40 +10,14 @@
-
else
-
else
%span
- Project Milestone
%span
- Project Milestone
.col-sm-6
.col-sm-4
.float-right.light
#{
milestone
.
percent_complete
(
current_user
)
}
% complete
=
milestone_progress_bar
(
milestone
)
.row
.col-sm-6
=
link_to
pluralize
(
milestone
.
total_issues_count
(
current_user
),
'Issue'
),
issues_path
=
link_to
pluralize
(
milestone
.
total_issues_count
(
current_user
),
'Issue'
),
issues_path
·
·
=
link_to
pluralize
(
milestone
.
merge_requests
.
size
,
'Merge Request'
),
merge_requests_path
=
link_to
pluralize
(
milestone
.
merge_requests
.
size
,
'Merge Request'
),
merge_requests_path
.col-sm-6
=
milestone_progress_bar
(
milestone
)
.float-right.light
#{
milestone
.
percent_complete
(
current_user
)
}
% complete
-
if
milestone
.
is_a?
(
GlobalMilestone
)
||
milestone
.
group_milestone?
.col-sm-2
.row
.col-sm-6
-
if
milestone
.
legacy_group_milestone?
.expiration
=
render
(
'shared/milestone_expired'
,
milestone:
milestone
)
.projects
-
milestone
.
milestones
.
each
do
|
milestone
|
=
link_to
milestone_path
(
milestone
)
do
%span
.badge.badge-gray
=
dashboard
?
milestone
.
project
.
full_name
:
milestone
.
project
.
name
-
if
@group
.col-sm-6.milestone-actions
-
if
can?
(
current_user
,
:admin_milestones
,
@group
)
-
if
milestone
.
group_milestone?
=
link_to
edit_group_milestone_path
(
@group
,
milestone
),
class:
"btn btn-sm btn-grouped"
do
Edit
\
-
if
milestone
.
closed?
=
link_to
'Reopen Milestone'
,
group_milestone_route
(
milestone
,
{
state_event: :activate
}),
method: :put
,
class:
"btn btn-sm btn-grouped btn-reopen"
-
else
=
link_to
'Close Milestone'
,
group_milestone_route
(
milestone
,
{
state_event: :close
}),
method: :put
,
class:
"btn btn-sm btn-grouped btn-close"
-
if
@project
-
if
@project
.row
.col-sm-6
=
render
(
'shared/milestone_expired'
,
milestone:
milestone
)
.col-sm-6.milestone-actions
.col-sm-6.milestone-actions
-
if
can?
(
current_user
,
:admin_milestone
,
milestone
.
project
)
and
milestone
.
active?
-
if
can?
(
current_user
,
:admin_milestone
,
milestone
.
project
)
and
milestone
.
active?
=
link_to
edit_project_milestone_path
(
milestone
.
project
,
milestone
),
class:
"btn btn-sm btn-grouped"
do
=
link_to
edit_project_milestone_path
(
milestone
.
project
,
milestone
),
class:
"btn btn-sm btn-grouped"
do
...
@@ -74,3 +48,30 @@
...
@@ -74,3 +48,30 @@
disabled:
true
}
disabled:
true
}
=
_
(
'Delete'
)
=
_
(
'Delete'
)
=
icon
(
'spin spinner'
,
class:
'js-loading-icon hidden'
)
=
icon
(
'spin spinner'
,
class:
'js-loading-icon hidden'
)
-
if
milestone
.
is_a?
(
GlobalMilestone
)
||
milestone
.
group_milestone?
.row
.col-sm-6
-
if
milestone
.
legacy_group_milestone?
.expiration
=
render
(
'shared/milestone_expired'
,
milestone:
milestone
)
.projects
-
milestone
.
milestones
.
each
do
|
milestone
|
=
link_to
milestone_path
(
milestone
)
do
%span
.badge.badge-gray
=
dashboard
?
milestone
.
project
.
full_name
:
milestone
.
project
.
name
-
if
@group
.col-sm-6.milestone-actions
-
if
can?
(
current_user
,
:admin_milestones
,
@group
)
-
if
milestone
.
group_milestone?
=
link_to
edit_group_milestone_path
(
@group
,
milestone
),
class:
"btn btn-sm btn-grouped"
do
Edit
\
-
if
milestone
.
closed?
=
link_to
'Reopen Milestone'
,
group_milestone_route
(
milestone
,
{
state_event: :activate
}),
method: :put
,
class:
"btn btn-sm btn-grouped btn-reopen"
-
else
=
link_to
'Close Milestone'
,
group_milestone_route
(
milestone
,
{
state_event: :close
}),
method: :put
,
class:
"btn btn-sm btn-grouped btn-close"
-
if
@project
.row
.col-sm-6
=
render
(
'shared/milestone_expired'
,
milestone:
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