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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
971c6e8d
Commit
971c6e8d
authored
Aug 27, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Rebase button depends on ff-only merge feature
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
88115792
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
22 deletions
+15
-22
app/views/projects/_merge_request_settings.html.haml
app/views/projects/_merge_request_settings.html.haml
+15
-9
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+0
-13
No files found.
app/views/projects/_merge_request_settings.html.haml
View file @
971c6e8d
...
...
@@ -7,21 +7,18 @@
.checkbox
=
f
.
label
:merge_requests_ff_only_enabled
do
=
f
.
check_box
:merge_requests_ff_only_enabled
%strong
Only fast-forward merge
%br
%span
.descr
Accept merge request button will do only fast-forward merges
.form-group
.form-group
.rebase-feature
.col-sm-offset-2.col-sm-10
.checkbox
=
f
.
label
:merge_requests_rebase_enabled
do
=
f
.
check_box
:merge_requests_rebase_enabled
%span
.descr
Allows rebasing of merge requests before merging.
.form-group.rebase-default
.col-sm-offset-2.col-sm-10
.checkbox
=
f
.
label
:merge_requests_rebase_default
do
=
f
.
check_box
:merge_requests_rebase_default
%span
.descr
Rebase enabled by default
%strong
Rebase button
%br
%span
.descr
Allows rebasing of merge requests before fast-forward merge.
.form-group
=
f
.
label
:merge_requests_template
,
class:
'control-label'
do
...
...
@@ -72,3 +69,12 @@
:coffeescript
new UsersSelect()
mergeRequestsRebaseVisibilityCheck = ->
is_rebase_enabled = $("input#project_merge_requests_ff_only_enabled").prop("checked")
$(".rebase-feature").toggle(is_rebase_enabled)
mergeRequestsRebaseVisibilityCheck()
$("input#project_merge_requests_ff_only_enabled").change ->
mergeRequestsRebaseVisibilityCheck()
app/views/projects/edit.html.haml
View file @
971c6e8d
...
...
@@ -213,16 +213,3 @@
=
render
'shared/confirm_modal'
,
phrase:
@project
.
path
:coffeescript
$ ->
mergeRequestsRebaseVisibilityCheck = ->
is_rebase_enabled = $("input#project_merge_requests_rebase_enabled").prop("checked")
$(".rebase-default").toggle(is_rebase_enabled)
mergeRequestsRebaseVisibilityCheck()
$("input#project_merge_requests_rebase_enabled").change ->
mergeRequestsRebaseVisibilityCheck()
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