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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
b8590da0
Commit
b8590da0
authored
Aug 08, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve MR merge widget text and UI consistency.
parent
a71bed53
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
79 additions
and
69 deletions
+79
-69
CHANGELOG
CHANGELOG
+1
-0
app/views/projects/merge_requests/widget/_closed.html.haml
app/views/projects/merge_requests/widget/_closed.html.haml
+2
-1
app/views/projects/merge_requests/widget/_heading.html.haml
app/views/projects/merge_requests/widget/_heading.html.haml
+3
-4
app/views/projects/merge_requests/widget/_locked.html.haml
app/views/projects/merge_requests/widget/_locked.html.haml
+2
-1
app/views/projects/merge_requests/widget/_merged.html.haml
app/views/projects/merge_requests/widget/_merged.html.haml
+16
-8
app/views/projects/merge_requests/widget/_open.html.haml
app/views/projects/merge_requests/widget/_open.html.haml
+1
-1
app/views/projects/merge_requests/widget/open/_accept.html.haml
...ews/projects/merge_requests/widget/open/_accept.html.haml
+3
-3
app/views/projects/merge_requests/widget/open/_archived.html.haml
...s/projects/merge_requests/widget/open/_archived.html.haml
+3
-1
app/views/projects/merge_requests/widget/open/_check.html.haml
...iews/projects/merge_requests/widget/open/_check.html.haml
+2
-2
app/views/projects/merge_requests/widget/open/_conflicts.html.haml
.../projects/merge_requests/widget/open/_conflicts.html.haml
+8
-9
app/views/projects/merge_requests/widget/open/_missing_branch.html.haml
...ects/merge_requests/widget/open/_missing_branch.html.haml
+16
-16
app/views/projects/merge_requests/widget/open/_not_allowed.html.haml
...rojects/merge_requests/widget/open/_not_allowed.html.haml
+4
-2
app/views/projects/merge_requests/widget/open/_nothing.html.haml
...ws/projects/merge_requests/widget/open/_nothing.html.haml
+6
-6
app/views/projects/merge_requests/widget/open/_reload.html.haml
...ews/projects/merge_requests/widget/open/_reload.html.haml
+6
-1
app/views/projects/merge_requests/widget/open/_wip.html.haml
app/views/projects/merge_requests/widget/open/_wip.html.haml
+4
-12
app/views/shared/issuable/_form.html.haml
app/views/shared/issuable/_form.html.haml
+2
-2
No files found.
CHANGELOG
View file @
b8590da0
...
@@ -43,6 +43,7 @@ v 7.14.0 (unreleased)
...
@@ -43,6 +43,7 @@ v 7.14.0 (unreleased)
- Fetch code from forks to refs/merge-requests/:id/head when merge request created
- Fetch code from forks to refs/merge-requests/:id/head when merge request created
- Remove satellites
- Remove satellites
- Remove comments and email addresses when publicly exposing ssh keys (Zeger-Jan van de Weg)
- Remove comments and email addresses when publicly exposing ssh keys (Zeger-Jan van de Weg)
- Improve MR merge widget text and UI consistency.
v 7.13.3
v 7.13.3
- Fix bug causing Bitbucket importer to crash when OAuth application had been removed.
- Fix bug causing Bitbucket importer to crash when OAuth application had been removed.
...
...
app/views/projects/merge_requests/widget/_closed.html.haml
View file @
b8590da0
...
@@ -6,4 +6,5 @@
...
@@ -6,4 +6,5 @@
-
if
@merge_request
.
closed_event
-
if
@merge_request
.
closed_event
by
#{
link_to_member
(
@project
,
@merge_request
.
closed_event
.
author
,
avatar:
true
)
}
by
#{
link_to_member
(
@project
,
@merge_request
.
closed_event
.
author
,
avatar:
true
)
}
#{
time_ago_with_tooltip
(
@merge_request
.
closed_event
.
created_at
)
}
#{
time_ago_with_tooltip
(
@merge_request
.
closed_event
.
created_at
)
}
%p
Changes were not merged into target branch
%p
The changes were not merged into the target branch.
app/views/projects/merge_requests/widget/_heading.html.haml
View file @
b8590da0
...
@@ -9,16 +9,15 @@
...
@@ -9,16 +9,15 @@
%span
CI build
#{
status
}
%span
CI build
#{
status
}
for
#{
@merge_request
.
last_commit_short_sha
}
.
for
#{
@merge_request
.
last_commit_short_sha
}
.
%span
.ci-coverage
%span
.ci-coverage
=
link_to
"View build
page
"
,
ci_build_details_path
(
@merge_request
),
:"data-no-turbolink"
=>
"data-no-turbolink"
=
link_to
"View build
details
"
,
ci_build_details_path
(
@merge_request
),
:"data-no-turbolink"
=>
"data-no-turbolink"
.ci_widget
.ci_widget
=
icon
(
"spinner spin"
)
=
icon
(
"spinner spin"
)
Checking
for
CI status for
#{
@merge_request
.
last_commit_short_sha
}
Checking CI status for
#{
@merge_request
.
last_commit_short_sha
}
.ci_widget.ci-not_found
{
style:
"display:none"
}
.ci_widget.ci-not_found
{
style:
"display:none"
}
=
icon
(
"times-circle"
)
=
icon
(
"times-circle"
)
%span
Can not find commit in the CI server
%span
Cannot find status on the CI server for
#{
@merge_request
.
last_commit_short_sha
}
.
for
#{
@merge_request
.
last_commit_short_sha
}
.
.ci_widget.ci-error
{
style:
"display:none"
}
.ci_widget.ci-error
{
style:
"display:none"
}
=
icon
(
"times-circle"
)
=
icon
(
"times-circle"
)
...
...
app/views/projects/merge_requests/widget/_locked.html.haml
View file @
b8590da0
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
=
render
'projects/merge_requests/widget/heading'
=
render
'projects/merge_requests/widget/heading'
.mr-widget-body
.mr-widget-body
%h4
%h4
=
icon
(
"spinner spin"
)
Merge in progress...
Merge in progress...
%p
%p
Merging is in progress. While merging this reques
t is locked and cannot be closed.
This merge request is in the process of being merged, during which time i
t is locked and cannot be closed.
app/views/projects/merge_requests/widget/_merged.html.haml
View file @
b8590da0
...
@@ -7,23 +7,31 @@
...
@@ -7,23 +7,31 @@
by
#{
link_to_member
(
@project
,
@merge_request
.
merge_event
.
author
,
avatar:
true
)
}
by
#{
link_to_member
(
@project
,
@merge_request
.
merge_event
.
author
,
avatar:
true
)
}
#{
time_ago_with_tooltip
(
@merge_request
.
merge_event
.
created_at
)
}
#{
time_ago_with_tooltip
(
@merge_request
.
merge_event
.
created_at
)
}
%div
%div
-
if
@source_branch
.
blank?
-
if
!
@merge_request
.
source_branch_exists?
Source branch has been removed
=
succeed
'.'
do
The changes were merged into
%span
.label-branch
=
@merge_request
.
target_branch
The source branch has been removed.
-
elsif
can_remove_branch?
(
@merge_request
.
source_project
,
@merge_request
.
source_branch
)
&&
@merge_request
.
merged?
-
elsif
can_remove_branch?
(
@merge_request
.
source_project
,
@merge_request
.
source_branch
)
.remove_source_branch_widget
.remove_source_branch_widget
%p
Changes merged into
#{
@merge_request
.
target_branch
}
. You can remove source branch now
%p
=
succeed
'.'
do
The changes were merged into
%span
.label-branch
=
@merge_request
.
target_branch
You can remove the source branch now.
=
link_to
namespace_project_branch_path
(
@merge_request
.
source_project
.
namespace
,
@merge_request
.
source_project
,
@source_branch
),
remote:
true
,
method: :delete
,
class:
"btn btn-primary btn-sm remove_source_branch"
do
=
link_to
namespace_project_branch_path
(
@merge_request
.
source_project
.
namespace
,
@merge_request
.
source_project
,
@source_branch
),
remote:
true
,
method: :delete
,
class:
"btn btn-primary btn-sm remove_source_branch"
do
%i
.fa.fa-times
%i
.fa.fa-times
Remove Source Branch
Remove Source Branch
.remove_source_branch_widget.failed.hide
.remove_source_branch_widget.failed.hide
Failed to remove source branch '
#{
@merge_request
.
source_branch
}
'
%p
Failed to remove source branch '
#{
@merge_request
.
source_branch
}
'.
.remove_source_branch_in_progress.hide
.remove_source_branch_in_progress.hide
%
i
.fa.fa-spinner.fa-spin
%
p
=
icon
(
'spinner spin'
)
Removing source branch '
#{
@merge_request
.
source_branch
}
'. Please wait. Page will be automatically reloaded.
Removing source branch '
#{
@merge_request
.
source_branch
}
'. Please wait. This page will be automatically reload.
:coffeescript
:coffeescript
$('.remove_source_branch').on 'click', ->
$('.remove_source_branch').on 'click', ->
...
...
app/views/projects/merge_requests/widget/_open.html.haml
View file @
b8590da0
...
@@ -22,6 +22,6 @@
...
@@ -22,6 +22,6 @@
.mr-widget-footer
.mr-widget-footer
%span
%span
%i
.fa.fa-check
%i
.fa.fa-check
Accepting this merge request will close
#{
@closes_issues
.
size
==
1
?
'issue'
:
'issues'
}
Accepting this merge request will close
#{
"issue"
.
pluralize
(
@closes_issues
.
size
)
}
=
succeed
'.'
do
=
succeed
'.'
do
!=
gfm
(
issues_sentence
(
@closes_issues
))
!=
gfm
(
issues_sentence
(
@closes_issues
))
app/views/projects/merge_requests/widget/open/_accept.html.haml
View file @
b8590da0
...
@@ -8,10 +8,10 @@
...
@@ -8,10 +8,10 @@
.accept-control.checkbox
.accept-control.checkbox
=
label_tag
:should_remove_source_branch
,
class:
"remove_source_checkbox"
do
=
label_tag
:should_remove_source_branch
,
class:
"remove_source_checkbox"
do
=
check_box_tag
:should_remove_source_branch
=
check_box_tag
:should_remove_source_branch
Remove source
-
branch
Remove source
branch
.accept-control
.accept-control
=
link_to
"#"
,
class:
"modify-merge-commit-link js-toggle-button"
,
title:
"Modify merge commit message"
do
=
link_to
"#"
,
class:
"modify-merge-commit-link js-toggle-button"
do
%i
.fa.fa-edit
=
icon
(
'edit'
)
Modify commit message
Modify commit message
.js-toggle-content.hide.prepend-top-20
.js-toggle-content.hide.prepend-top-20
=
render
'shared/commit_message_container'
,
params:
params
,
=
render
'shared/commit_message_container'
,
params:
params
,
...
...
app/views/projects/merge_requests/widget/open/_archived.html.haml
View file @
b8590da0
%h4
Project is archived
%p
%p
%strong
Archived projects do not provide commit access
.
This merge request cannot be merged because archived projects cannot be written to
.
app/views/projects/merge_requests/widget/open/_check.html.haml
View file @
b8590da0
%strong
%strong
%i
.fa.fa-spinner.fa-spin
=
icon
(
"spinner spin"
)
Checking a
utomatic merge…
Checking a
bility to merge automatically...
:coffeescript
:coffeescript
$ ->
$ ->
...
...
app/views/projects/merge_requests/widget/open/_conflicts.html.haml
View file @
b8590da0
%h4
%h4
This merge request contains merge conflicts that must be resolved.
=
icon
(
"exclamation-triangle"
)
This merge request contains merge conflicts
-
if
@merge_request
.
can_be_merged_by?
(
current_user
)
%p
%p
Please resolve these conflicts or
You can merge it manually using the
-
if
@merge_request
.
can_be_merged_by?
(
current_user
)
%strong
#{
link_to
"merge this request manually"
,
"#modal_merge_info"
,
class:
"how_to_merge_link vlink"
,
"data-toggle"
=>
"modal"
}
.
=
link_to
"command line"
,
"#modal_merge_info"
,
class:
"how_to_merge_link vlink"
,
title:
"How To Merge"
,
"data-toggle"
=>
"modal"
-
else
-
else
ask someone with write access to this repository to merge this request manually.
%p
Only those with write access to this repository can merge merge requests.
app/views/projects/merge_requests/widget/open/_missing_branch.html.haml
View file @
b8590da0
%h4
-
unless
@merge_request
.
source_branch_exists?
Can't be merged
%h4
%p
=
icon
(
"exclamation-triangle"
)
This merge request can not be accepted becaus
e branch
Sourc
e branch
-
unless
@merge_request
.
source_branch_exists?
%span
.label-branch
=
source_branch_with_namespace
(
@merge_request
)
%span
.label.label-inverse
=
@merge_request
.
source_branch
does not exist
does not exist in
%p
%span
.label.label-info
=
@merge_request
.
source_project_path
Please restore the source branch or close this merge request and open a new merge request with a different source branch.
%br
-
else
%strong
Please close this merge request and open a new merge request to change source branches.
%h4
-
else
=
icon
(
"exclamation-triangle"
)
%span
.label.label-inverse
=
@merge_request
.
target_
branch
Target
branch
does not exist in
%span
.label-branch
=
@merge_request
.
target_branch
%span
.label.label-info
=
@merge_request
.
target_project_path
does not exist
%br
%p
%strong
Please close this merge request or change to another
target branch.
Please restore the target branch or use a different
target branch.
app/views/projects/merge_requests/widget/open/_not_allowed.html.haml
View file @
b8590da0
%strong
This request can be merged automatically.
%h4
Only those with write access to this repository can merge merge requests.
Ready to be merged automatically
%p
Ask someone with write access to this repository to merge this request.
app/views/projects/merge_requests/widget/open/_nothing.html.haml
View file @
b8590da0
%h4
Nothing to merge
%h4
%p
=
icon
(
"exclamation-triangle"
)
Nothing to merge from
Nothing to merge from
%span
.label-branch
#{
@merge_request
.
source_branch
}
%span
.label-branch
=
source_branch_with_namespace
(
@merge_request
)
to
to
%span
.label-branch
#{
@merge_request
.
target_branch
}
%span
.label-branch
=
@merge_request
.
target_branch
%br
%p
Try to use different branches or push new code
.
Please push new commits to the source branch or use a different target branch
.
app/views/projects/merge_requests/widget/open/_reload.html.haml
View file @
b8590da0
This merge request cannot be merged. Try to reload the page.
%h4
=
icon
(
"exclamation-triangle"
)
This merge request could not be merged automatically
%p
Please reload the page to find out the reason.
app/views/projects/merge_requests/widget/open/_wip.html.haml
View file @
b8590da0
-
if
@merge_request
.
can_be_merged_by?
(
current_user
)
%h4
%h4
This merge request is currently a Work In Progress
This merge request cannot be accepted because it is marked as Work In Progress.
%p
%p
%button
.btn.disabled
{
:type
=>
'button'
}
When this merge request is ready, remove the "WIP" prefix from the title to allow it to be merged.
%i
.fa.fa-warning
Accept Merge Request
When the merge request is ready, remove the "WIP" prefix from the title to allow it to be accepted.
-
else
%strong
This merge request is marked as Work In Progress.
Only those with write access to this repository can merge merge requests.
app/views/shared/issuable/_form.html.haml
View file @
b8590da0
...
@@ -16,10 +16,10 @@
...
@@ -16,10 +16,10 @@
%p
.help-block
%p
.help-block
-
if
issuable
.
work_in_progress?
-
if
issuable
.
work_in_progress?
Remove the
<code>
WIP
</code>
prefix from the title to allow this
Remove the
<code>
WIP
</code>
prefix from the title to allow this
<strong>
Work In Progress
</strong>
merge request to be
accept
ed when it's ready.
<strong>
Work In Progress
</strong>
merge request to be
merg
ed when it's ready.
-
else
-
else
Start the title with
<code>
[WIP]
</code>
or
<code>
WIP:
</code>
to prevent a
Start the title with
<code>
[WIP]
</code>
or
<code>
WIP:
</code>
to prevent a
<strong>
Work In Progress
</strong>
merge request from being
accept
ed before it's ready.
<strong>
Work In Progress
</strong>
merge request from being
merg
ed before it's ready.
.form-group.issuable-description
.form-group.issuable-description
=
f
.
label
:description
,
'Description'
,
class:
'control-label'
=
f
.
label
:description
,
'Description'
,
class:
'control-label'
.col-sm-10
.col-sm-10
...
...
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