Add clipboard buttons to each step of "How to merge"
This commit is contained in:
parent
187625831f
commit
8010872579
2 changed files with 14 additions and 2 deletions
|
@ -205,6 +205,15 @@
|
||||||
|
|
||||||
#modal_merge_info .modal-dialog {
|
#modal_merge_info .modal-dialog {
|
||||||
width: 600px;
|
width: 600px;
|
||||||
|
|
||||||
|
.btn-clipboard {
|
||||||
|
@extend .pull-right;
|
||||||
|
|
||||||
|
margin-right: 18px;
|
||||||
|
margin-top: 5px;
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mr-source-target {
|
.mr-source-target {
|
||||||
|
|
|
@ -3,11 +3,12 @@
|
||||||
.modal-content
|
.modal-content
|
||||||
.modal-header
|
.modal-header
|
||||||
%a.close{href: "#", "data-dismiss" => "modal"} ×
|
%a.close{href: "#", "data-dismiss" => "modal"} ×
|
||||||
%h3 Check out, review and merge locally
|
%h3 Check out, review, and merge locally
|
||||||
.modal-body
|
.modal-body
|
||||||
%p
|
%p
|
||||||
%strong Step 1.
|
%strong Step 1.
|
||||||
Fetch and check out the branch for this merge request
|
Fetch and check out the branch for this merge request
|
||||||
|
= clipboard_button
|
||||||
%pre.dark
|
%pre.dark
|
||||||
- if @merge_request.for_fork?
|
- if @merge_request.for_fork?
|
||||||
:preserve
|
:preserve
|
||||||
|
@ -24,6 +25,7 @@
|
||||||
%p
|
%p
|
||||||
%strong Step 3.
|
%strong Step 3.
|
||||||
Merge the branch and fix any conflicts that come up
|
Merge the branch and fix any conflicts that come up
|
||||||
|
= clipboard_button
|
||||||
%pre.dark
|
%pre.dark
|
||||||
- if @merge_request.for_fork?
|
- if @merge_request.for_fork?
|
||||||
:preserve
|
:preserve
|
||||||
|
@ -36,6 +38,7 @@
|
||||||
%p
|
%p
|
||||||
%strong Step 4.
|
%strong Step 4.
|
||||||
Push the result of the merge to GitLab
|
Push the result of the merge to GitLab
|
||||||
|
= clipboard_button
|
||||||
%pre.dark
|
%pre.dark
|
||||||
:preserve
|
:preserve
|
||||||
git push origin #{h @merge_request.target_branch}
|
git push origin #{h @merge_request.target_branch}
|
||||||
|
|
Loading…
Reference in a new issue