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
iv
gitlab-ce
Commits
a1fd87cd
Commit
a1fd87cd
authored
9 years ago
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce
parents
e65dfcf2
e07c9c1e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
13 deletions
+11
-13
CHANGELOG
CHANGELOG
+0
-2
app/assets/stylesheets/pages/merge_requests.scss
app/assets/stylesheets/pages/merge_requests.scss
+1
-1
app/helpers/button_helper.rb
app/helpers/button_helper.rb
+2
-2
app/views/projects/commit/_commit_box.html.haml
app/views/projects/commit/_commit_box.html.haml
+2
-2
app/views/projects/merge_requests/show/_how_to_merge.html.haml
...iews/projects/merge_requests/show/_how_to_merge.html.haml
+6
-6
No files found.
CHANGELOG
View file @
a1fd87cd
...
...
@@ -62,8 +62,6 @@ v 8.2.3
- Update documentation for "Guest" permissions
- Properly convert Emoji-only comments into Award Emojis
- Enable devise paranoid mode to prevent user enumeration attack
v 8.2.3
- Webhook payload has an added, modified and removed properties for each commit
- Fix 500 error when creating a merge request that removes a submodule
...
...
This diff is collapsed.
Click to expand it.
app/assets/stylesheets/pages/merge_requests.scss
View file @
a1fd87cd
...
...
@@ -191,7 +191,7 @@
.btn-clipboard
{
@extend
.pull-right
;
margin-right
:
18
px
;
margin-right
:
20
px
;
margin-top
:
5px
;
position
:
absolute
;
right
:
0
;
...
...
This diff is collapsed.
Click to expand it.
app/helpers/button_helper.rb
View file @
a1fd87cd
...
...
@@ -10,8 +10,8 @@ module ButtonHelper
# # => "<button class='...' data-clipboard-text='Foo'>...</button>"
#
# # Define the target element
# clipboard_button(clipboard_target: "#foo")
# # => "<button class='...' data-clipboard-target='#foo'>...</button>"
# clipboard_button(clipboard_target: "
div
#foo")
# # => "<button class='...' data-clipboard-target='
div
#foo'>...</button>"
#
# See http://clipboardjs.com/#usage
def
clipboard_button
(
data
=
{})
...
...
This diff is collapsed.
Click to expand it.
app/views/projects/commit/_commit_box.html.haml
View file @
a1fd87cd
...
...
@@ -20,8 +20,8 @@
%p
%span
.light
Commit
=
link_to
@commit
.
id
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
),
class:
"monospace"
,
data:
{
clipboard_text:
@commit
.
id
}
=
clipboard_button
=
link_to
@commit
.
id
,
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
),
class:
"monospace"
=
clipboard_button
(
clipboard_text:
@commit
.
id
)
.commit-info-row
%span
.light
Authored by
%strong
...
...
This diff is collapsed.
Click to expand it.
app/views/projects/merge_requests/show/_how_to_merge.html.haml
View file @
a1fd87cd
...
...
@@ -8,8 +8,8 @@
%p
%strong
Step 1.
Fetch and check out the branch for this merge request
=
clipboard_button
%pre
.dark
=
clipboard_button
(
clipboard_target:
'pre#merge-info-1'
)
%pre
.dark
#merge-info-1
-
if
@merge_request
.
for_fork?
:preserve
git fetch
#{
h
@merge_request
.
source_project
.
http_url_to_repo
}
#{
h
@merge_request
.
source_branch
}
...
...
@@ -25,8 +25,8 @@
%p
%strong
Step 3.
Merge the branch and fix any conflicts that come up
=
clipboard_button
%pre
.dark
=
clipboard_button
(
clipboard_target:
'pre#merge-info-3'
)
%pre
.dark
#merge-info-3
-
if
@merge_request
.
for_fork?
:preserve
git checkout
#{
h
@merge_request
.
target_branch
}
...
...
@@ -38,8 +38,8 @@
%p
%strong
Step 4.
Push the result of the merge to GitLab
=
clipboard_button
%pre
.dark
=
clipboard_button
(
clipboard_target:
'pre#merge-info-4'
)
%pre
.dark
#merge-info-4
:preserve
git push origin
#{
h
@merge_request
.
target_branch
}
-
unless
@merge_request
.
can_be_merged_by?
(
current_user
)
...
...
This diff is collapsed.
Click to expand it.
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