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
Léo-Paul Géneau
gitlab-ce
Commits
fb7189e3
Commit
fb7189e3
authored
Mar 04, 2018
by
Luke Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove all instance milestone variables in favour of local variables
parent
4763f315
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
app/views/shared/milestones/_top.html.haml
app/views/shared/milestones/_top.html.haml
+5
-5
No files found.
app/views/shared/milestones/_top.html.haml
View file @
fb7189e3
...
@@ -30,23 +30,23 @@
...
@@ -30,23 +30,23 @@
-
else
-
else
=
link_to
'Reopen Milestone'
,
group_milestone_route
(
milestone
,
{
state_event: :activate
}),
method: :put
,
class:
"btn btn-grouped btn-reopen"
=
link_to
'Reopen Milestone'
,
group_milestone_route
(
milestone
,
{
state_event: :activate
}),
method: :put
,
class:
"btn btn-grouped btn-reopen"
=
render
'shared/milestones/deprecation_message'
if
@milestone
.
legacy_group_milestone?
||
@
milestone
.
dashboard_milestone?
=
render
'shared/milestones/deprecation_message'
if
milestone
.
legacy_group_milestone?
||
milestone
.
dashboard_milestone?
.detail-page-description.milestone-detail
.detail-page-description.milestone-detail
%h2
.title
%h2
.title
=
markdown_field
(
milestone
,
:title
)
=
markdown_field
(
milestone
,
:title
)
-
if
@milestone
.
group_milestone?
&&
@
milestone
.
description
.
present?
-
if
milestone
.
group_milestone?
&&
milestone
.
description
.
present?
%div
%div
.description
.description
.wiki
.wiki
=
markdown_field
(
@
milestone
,
:description
)
=
markdown_field
(
milestone
,
:description
)
-
if
milestone
.
complete?
(
current_user
)
&&
milestone
.
active?
-
if
milestone
.
complete?
(
current_user
)
&&
milestone
.
active?
.alert.alert-success.prepend-top-default
.alert.alert-success.prepend-top-default
-
close_msg
=
group
?
'You may close the milestone now.'
:
'Navigate to the project to close the milestone.'
-
close_msg
=
group
?
'You may close the milestone now.'
:
'Navigate to the project to close the milestone.'
%span
All issues for this milestone are closed.
#{
close_msg
}
%span
All issues for this milestone are closed.
#{
close_msg
}
-
if
@milestone
.
legacy_group_milestone?
||
@
milestone
.
dashboard_milestone?
-
if
milestone
.
legacy_group_milestone?
||
milestone
.
dashboard_milestone?
.table-holder
.table-holder
%table
.table
%table
.table
%thead
%thead
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
Open
Open
%td
%td
=
ms
.
expires_at
=
ms
.
expires_at
-
elsif
@
milestone
.
group_milestone?
-
elsif
milestone
.
group_milestone?
%br
%br
View
View
=
link_to
'Issues'
,
issues_group_path
(
@group
,
milestone_title:
milestone
.
title
)
=
link_to
'Issues'
,
issues_group_path
(
@group
,
milestone_title:
milestone
.
title
)
...
...
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