2013-01-05 02:18:39 +01:00
|
|
|
.merge-request
|
|
|
|
= render "merge_requests/show/mr_title"
|
|
|
|
= render "merge_requests/show/how_to_merge"
|
|
|
|
= render "merge_requests/show/mr_box"
|
|
|
|
= render "merge_requests/show/mr_accept"
|
|
|
|
- if @project.gitlab_ci?
|
|
|
|
= render "merge_requests/show/mr_ci"
|
|
|
|
= render "merge_requests/show/commits"
|
2012-06-29 20:55:22 +02:00
|
|
|
|
2013-01-05 02:18:39 +01:00
|
|
|
- if @commits.present?
|
|
|
|
%ul.nav.nav-tabs
|
|
|
|
%li.notes-tab{data: {action: 'notes'}}
|
|
|
|
= link_to project_merge_request_path(@project, @merge_request) do
|
|
|
|
%i.icon-comment
|
2013-01-15 00:52:25 +01:00
|
|
|
Discussion
|
2013-01-05 02:18:39 +01:00
|
|
|
%li.diffs-tab{data: {action: 'diffs'}}
|
|
|
|
= link_to diffs_project_merge_request_path(@project, @merge_request) do
|
|
|
|
%i.icon-list-alt
|
|
|
|
Diff
|
2012-06-29 20:55:22 +02:00
|
|
|
|
2013-01-05 02:18:39 +01:00
|
|
|
.notes.tab-content.voting_notes#notes{ class: (controller.action_name == 'show') ? "" : "hide" }
|
2013-01-15 00:52:25 +01:00
|
|
|
= render "notes/notes_with_form"
|
2013-01-05 02:18:39 +01:00
|
|
|
.diffs.tab-content
|
|
|
|
= render "merge_requests/show/diffs" if @diffs
|
|
|
|
.status
|
2012-06-29 20:55:22 +02:00
|
|
|
|
|
|
|
:javascript
|
2013-01-05 02:18:39 +01:00
|
|
|
var merge_request;
|
2012-06-29 20:55:22 +02:00
|
|
|
$(function(){
|
2013-01-05 02:18:39 +01:00
|
|
|
merge_request = new MergeRequest({
|
2012-06-29 20:55:22 +02:00
|
|
|
url_to_automerge_check: "#{automerge_check_project_merge_request_path(@project, @merge_request)}",
|
2013-02-15 09:27:13 +01:00
|
|
|
check_enable: #{@merge_request.merge_status == MergeRequest::UNCHECKED ? "true" : "false"},
|
2012-12-11 04:14:05 +01:00
|
|
|
url_to_ci_check: "#{ci_status_project_merge_request_path(@project, @merge_request)}",
|
|
|
|
ci_enable: #{@project.gitlab_ci? ? "true" : "false"},
|
2013-02-15 09:27:13 +01:00
|
|
|
current_status: "#{@merge_request.human_merge_status}",
|
2012-06-29 20:55:22 +02:00
|
|
|
action: "#{controller.action_name}"
|
|
|
|
});
|
2013-01-05 02:18:39 +01:00
|
|
|
});
|
2012-06-29 20:55:22 +02:00
|
|
|
|