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
b093f509
Commit
b093f509
authored
Nov 16, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some code and doc improvements
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
32f1a719
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
6 deletions
+10
-6
app/models/global_milestone.rb
app/models/global_milestone.rb
+4
-0
app/views/dashboard/milestones/show.html.haml
app/views/dashboard/milestones/show.html.haml
+1
-1
app/views/groups/milestones/show.html.haml
app/views/groups/milestones/show.html.haml
+1
-1
doc/workflow/milestones.md
doc/workflow/milestones.md
+4
-4
No files found.
app/models/global_milestone.rb
View file @
b093f509
...
...
@@ -94,4 +94,8 @@ class GlobalMilestone
def
closed_merge_requests
merge_requests
.
values_at
(
"closed"
,
"merged"
,
"locked"
).
compact
.
flatten
end
def
complete?
total_items_count
==
closed_items_count
end
end
app/views/dashboard/milestones/show.html.haml
View file @
b093f509
...
...
@@ -8,7 +8,7 @@
Milestone
#{
@milestone
.
title
}
%hr
-
if
(
@milestone
.
total_items_count
==
@milestone
.
closed_items_count
)
&&
@milestone
.
active?
-
if
@milestone
.
complete?
&&
@milestone
.
active?
.alert.alert-success
%span
All issues for this milestone are closed. You may close the milestone now.
...
...
app/views/groups/milestones/show.html.haml
View file @
b093f509
...
...
@@ -16,7 +16,7 @@
=
link_to
'Reopen Milestone'
,
group_milestone_path
(
@group
,
@milestone
.
safe_title
,
title:
@milestone
.
title
,
milestone:
{
state_event: :activate
}),
method: :put
,
class:
"btn btn-sm btn-grouped btn-reopen"
%hr
-
if
(
@milestone
.
total_items_count
==
@milestone
.
closed_items_count
)
&&
@milestone
.
active?
-
if
@milestone
.
complete?
&&
@milestone
.
active?
.alert.alert-success
%span
All issues for this milestone are closed. You may close the milestone now.
...
...
doc/workflow/milestones.md
View file @
b093f509
# Milestones
Milestone
allows you to group issues and set due date for it
.
Milestone is created per project.
Milestone
s allow you to organize issues and merge requests into a cohesive group, optionally setting a due date
.
A common use is keeping track of an upcoming software version. Milestones are created per-project.
![
milestone form
](
milestones/form.png
)
## Groups and milestones
You can create
milestone with single form for several projects that belongs to the same group.
On the group
milestones page you will be able to see this milestones grouped together by name
.
You can create
a milestone for several projects in the same group simultaneously.
On the group
's milestones page, you will be able to see the status of that milestone across all of the selected projects
.
![
group milestone form
](
milestones/group_form.png
)
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