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
70a6af93
Commit
70a6af93
authored
Jun 05, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'milestone-merged-mr-list' into 'master'
Milestone merged mr list Part of #1207
parents
7e41eca3
ffd50e8c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
app/models/merge_request.rb
app/models/merge_request.rb
+1
-0
app/views/projects/milestones/show.html.haml
app/views/projects/milestones/show.html.haml
+11
-5
No files found.
app/models/merge_request.rb
View file @
70a6af93
...
@@ -113,6 +113,7 @@ class MergeRequest < ActiveRecord::Base
...
@@ -113,6 +113,7 @@ class MergeRequest < ActiveRecord::Base
# Closed scope for merge request should return
# Closed scope for merge request should return
# both merged and closed mr's
# both merged and closed mr's
scope
:closed
,
->
{
with_states
(
:closed
,
:merged
)
}
scope
:closed
,
->
{
with_states
(
:closed
,
:merged
)
}
scope
:declined
,
->
{
with_states
(
:closed
)
}
def
validate_branches
def
validate_branches
if
target_project
==
source_project
&&
target_branch
==
source_branch
if
target_project
==
source_project
&&
target_branch
==
source_branch
...
...
app/views/projects/milestones/show.html.haml
View file @
70a6af93
...
@@ -84,12 +84,18 @@
...
@@ -84,12 +84,18 @@
.tab-pane
#tab-merge-requests
.tab-pane
#tab-merge-requests
.row
.row
.col-md-
4
.col-md-
3
=
render
(
'merge_requests'
,
title:
'Work in progress (open and unassigned)'
,
merge_requests:
@merge_requests
.
opened
.
unassigned
,
id:
'unassigned'
)
=
render
(
'merge_requests'
,
title:
'Work in progress (open and unassigned)'
,
merge_requests:
@merge_requests
.
opened
.
unassigned
,
id:
'unassigned'
)
.col-md-4
.col-md-3
=
render
(
'merge_requests'
,
title:
'Assigned (open and assigned)'
,
merge_requests:
@merge_requests
.
opened
.
assigned
,
id:
'ongoing'
)
=
render
(
'merge_requests'
,
title:
'Waiting for merge (open and assigned)'
,
merge_requests:
@merge_requests
.
opened
.
assigned
,
id:
'ongoing'
)
.col-md-4
.col-md-3
=
render
(
'merge_requests'
,
title:
'Declined (closed)'
,
merge_requests:
@merge_requests
.
closed
,
id:
'closed'
)
=
render
(
'merge_requests'
,
title:
'Declined (closed)'
,
merge_requests:
@merge_requests
.
declined
,
id:
'closed'
)
.col-md-3
.panel.panel-primary
.panel-heading
Merged
%ul
.well-list
-
@merge_requests
.
merged
.
each
do
|
merge_request
|
=
render
'merge_request'
,
merge_request:
merge_request
.tab-pane
#tab-participants
.tab-pane
#tab-participants
%ul
.bordered-list
%ul
.bordered-list
...
...
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