2012-06-29 20:55:22 +02:00
|
|
|
= 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"
|
|
|
|
= render "merge_requests/show/commits"
|
|
|
|
|
|
|
|
- if @commits.present?
|
|
|
|
%ul.nav.nav-tabs.mr_nav_tabs
|
|
|
|
%li
|
2012-10-29 20:38:12 +01:00
|
|
|
= link_to "#notes", title: "Discussion", "data-url" => project_merge_request_path(@project, @merge_request), class: "merge-notes-tab tab" do
|
|
|
|
%i.icon-comments
|
|
|
|
Discussion
|
2012-06-29 20:55:22 +02:00
|
|
|
%li
|
2012-10-29 15:55:37 +01:00
|
|
|
= link_to "#diffs", title: "Diff", "data-url" => diffs_project_merge_request_path(@project, @merge_request), class: "merge-diffs-tab tab" do
|
2012-06-29 20:55:22 +02:00
|
|
|
%i.icon-list-alt
|
|
|
|
Diff
|
|
|
|
|
2012-09-15 11:54:46 +02:00
|
|
|
.merge_request_notes.voting_notes#notes{ class: (controller.action_name == 'show') ? "" : "hide" }
|
2012-12-02 20:43:39 +01:00
|
|
|
= render "notes/notes_with_form"
|
2012-06-29 20:55:22 +02:00
|
|
|
.merge-request-diffs
|
|
|
|
= render "merge_requests/show/diffs" if @diffs
|
|
|
|
.status
|
|
|
|
|
|
|
|
:javascript
|
|
|
|
$(function(){
|
|
|
|
MergeRequest.init({
|
|
|
|
url_to_automerge_check: "#{automerge_check_project_merge_request_path(@project, @merge_request)}",
|
|
|
|
check_enable: #{@merge_request.state == MergeRequest::UNCHECKED ? "true" : "false"},
|
|
|
|
current_state: "#{@merge_request.human_state}",
|
|
|
|
action: "#{controller.action_name}"
|
|
|
|
});
|
|
|
|
|
|
|
|
$(".edit_merge_request").live("ajax:beforeSend", function() {
|
2012-08-18 23:45:46 +02:00
|
|
|
$('.can_be_merged').hide();
|
|
|
|
$('.merge_in_progress').show();
|
2012-06-29 20:55:22 +02:00
|
|
|
})
|
|
|
|
})
|
|
|
|
|