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
ebe9c890
Commit
ebe9c890
authored
May 25, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Consistently refer to MRs as either Accepted or Rejected.
parent
84cb0dcb
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
12 deletions
+13
-12
CHANGELOG
CHANGELOG
+1
-0
app/models/merge_request.rb
app/models/merge_request.rb
+1
-1
app/views/projects/merge_requests/_merge_request.html.haml
app/views/projects/merge_requests/_merge_request.html.haml
+3
-3
app/views/projects/merge_requests/show/_mr_title.html.haml
app/views/projects/merge_requests/show/_mr_title.html.haml
+2
-2
app/views/projects/merge_requests/show/_state_widget.html.haml
...iews/projects/merge_requests/show/_state_widget.html.haml
+2
-2
app/views/projects/milestones/show.html.haml
app/views/projects/milestones/show.html.haml
+2
-2
app/views/search/results/_merge_request.html.haml
app/views/search/results/_merge_request.html.haml
+2
-2
No files found.
CHANGELOG
View file @
ebe9c890
...
@@ -7,6 +7,7 @@ v 7.12.0 (unreleased)
...
@@ -7,6 +7,7 @@ v 7.12.0 (unreleased)
- Update Asciidoctor gem to version 1.5.2. (Jakub Jirutka)
- Update Asciidoctor gem to version 1.5.2. (Jakub Jirutka)
- Fix resolving of relative links to repository files in AsciiDoc documents. (Jakub Jirutka)
- Fix resolving of relative links to repository files in AsciiDoc documents. (Jakub Jirutka)
- Use the user list from the target project in a merge request (Stan Hu)
- Use the user list from the target project in a merge request (Stan Hu)
- Consistently refer to MRs as either Accepted or Rejected.
v 7.11.2
v 7.11.2
- no changes
- no changes
...
...
app/models/merge_request.rb
View file @
ebe9c890
...
@@ -133,7 +133,7 @@ class MergeRequest < ActiveRecord::Base
...
@@ -133,7 +133,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
:
declin
ed
,
->
{
with_states
(
:closed
)
}
scope
:
reject
ed
,
->
{
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/merge_requests/_merge_request.html.haml
View file @
ebe9c890
...
@@ -10,11 +10,11 @@
...
@@ -10,11 +10,11 @@
-
if
merge_request
.
merged?
-
if
merge_request
.
merged?
%span
%span
%i
.fa.fa-check
%i
.fa.fa-check
MERG
ED
ACCEPT
ED
-
elsif
merge_request
.
closed?
-
elsif
merge_request
.
closed?
%span
%span
%i
.fa.fa-
close
%i
.fa.fa-
ban
CLOS
ED
REJECT
ED
-
else
-
else
%span
.hidden-xs.hidden-sm
%span
.hidden-xs.hidden-sm
%span
.label-branch
<
%span
.label-branch
<
...
...
app/views/projects/merge_requests/show/_mr_title.html.haml
View file @
ebe9c890
%h4
.page-title
%h4
.page-title
.issue-box
{
class:
issue_box_class
(
@merge_request
)
}
.issue-box
{
class:
issue_box_class
(
@merge_request
)
}
-
if
@merge_request
.
merged?
-
if
@merge_request
.
merged?
Merg
ed
Accept
ed
-
elsif
@merge_request
.
closed?
-
elsif
@merge_request
.
closed?
Clos
ed
Reject
ed
-
else
-
else
Open
Open
=
"Merge Request #
#{
@merge_request
.
iid
}
"
=
"Merge Request #
#{
@merge_request
.
iid
}
"
...
...
app/views/projects/merge_requests/show/_state_widget.html.haml
View file @
ebe9c890
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
-
if
@merge_request
.
closed?
-
if
@merge_request
.
closed?
%h4
%h4
Clos
ed
Reject
ed
-
if
@merge_request
.
closed_event
-
if
@merge_request
.
closed_event
by
#{
link_to_member
(
@project
,
@merge_request
.
closed_event
.
author
,
avatar:
false
)
}
by
#{
link_to_member
(
@project
,
@merge_request
.
closed_event
.
author
,
avatar:
false
)
}
#{
time_ago_with_tooltip
(
@merge_request
.
closed_event
.
created_at
)
}
#{
time_ago_with_tooltip
(
@merge_request
.
closed_event
.
created_at
)
}
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
-
if
@merge_request
.
merged?
-
if
@merge_request
.
merged?
%h4
%h4
Merg
ed
Accept
ed
-
if
@merge_request
.
merge_event
-
if
@merge_request
.
merge_event
by
#{
link_to_member
(
@project
,
@merge_request
.
merge_event
.
author
,
avatar:
false
)
}
by
#{
link_to_member
(
@project
,
@merge_request
.
merge_event
.
author
,
avatar:
false
)
}
#{
time_ago_with_tooltip
(
@merge_request
.
merge_event
.
created_at
)
}
#{
time_ago_with_tooltip
(
@merge_request
.
merge_event
.
created_at
)
}
...
...
app/views/projects/milestones/show.html.haml
View file @
ebe9c890
...
@@ -85,10 +85,10 @@
...
@@ -85,10 +85,10 @@
.col-md-3
.col-md-3
=
render
(
'merge_requests'
,
title:
'Waiting for merge (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-3
.col-md-3
=
render
(
'merge_requests'
,
title:
'
Declined (closed)'
,
merge_requests:
@merge_requests
.
declin
ed
,
id:
'closed'
)
=
render
(
'merge_requests'
,
title:
'
Rejected (closed)'
,
merge_requests:
@merge_requests
.
reject
ed
,
id:
'closed'
)
.col-md-3
.col-md-3
.panel.panel-primary
.panel.panel-primary
.panel-heading
Merg
ed
.panel-heading
Accept
ed
%ul
.well-list
%ul
.well-list
-
@merge_requests
.
merged
.
each
do
|
merge_request
|
-
@merge_requests
.
merged
.
each
do
|
merge_request
|
=
render
'merge_request'
,
merge_request:
merge_request
=
render
'merge_request'
,
merge_request:
merge_request
...
...
app/views/search/results/_merge_request.html.haml
View file @
ebe9c890
...
@@ -11,6 +11,6 @@
...
@@ -11,6 +11,6 @@
#{
merge_request
.
project
.
name_with_namespace
}
#{
merge_request
.
project
.
name_with_namespace
}
.pull-right
.pull-right
-
if
merge_request
.
merged?
-
if
merge_request
.
merged?
%span
.label.label-primary
Merg
ed
%span
.label.label-primary
Accept
ed
-
elsif
merge_request
.
closed?
-
elsif
merge_request
.
closed?
%span
.label.label-danger
Clos
ed
%span
.label.label-danger
Reject
ed
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