2015-04-26 12:48:37 +05:30
|
|
|
.merge-request{'data-url' => merge_request_path(@merge_request)}
|
|
|
|
.merge-request-details
|
|
|
|
= render "projects/merge_requests/show/mr_title"
|
|
|
|
%hr
|
|
|
|
= render "projects/merge_requests/show/mr_box"
|
|
|
|
%hr
|
|
|
|
.append-bottom-20
|
|
|
|
.slead
|
|
|
|
%span From
|
|
|
|
- if @merge_request.for_fork?
|
|
|
|
%strong.label-branch<
|
|
|
|
- if @merge_request.source_project
|
|
|
|
= link_to @merge_request.source_project_namespace, namespace_project_path(@merge_request.source_project.namespace, @merge_request.source_project)
|
|
|
|
- else
|
|
|
|
\ #{@merge_request.source_project_namespace}
|
|
|
|
\:#{@merge_request.source_branch}
|
|
|
|
%span into
|
|
|
|
%strong.label-branch #{@merge_request.target_project_namespace}:#{@merge_request.target_branch}
|
|
|
|
- else
|
|
|
|
%strong.label-branch #{@merge_request.source_branch}
|
|
|
|
%span into
|
|
|
|
%strong.label-branch #{@merge_request.target_branch}
|
|
|
|
- if @merge_request.open?
|
|
|
|
%span.pull-right
|
|
|
|
.btn-group
|
|
|
|
%a.btn.dropdown-toggle{ data: {toggle: :dropdown} }
|
|
|
|
%i.fa.fa-download
|
|
|
|
Download as
|
|
|
|
%span.caret
|
|
|
|
%ul.dropdown-menu
|
|
|
|
%li= link_to "Email Patches", merge_request_path(@merge_request, format: :patch)
|
|
|
|
%li= link_to "Plain Diff", merge_request_path(@merge_request, format: :diff)
|
|
|
|
|
|
|
|
= render "projects/merge_requests/show/how_to_merge"
|
|
|
|
= render "projects/merge_requests/show/state_widget"
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
- if @commits.present?
|
2015-04-26 12:48:37 +05:30
|
|
|
%ul.nav.nav-tabs.merge-request-tabs
|
2014-09-02 18:07:02 +05:30
|
|
|
%li.notes-tab{data: {action: 'notes'}}
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to merge_request_path(@merge_request) do
|
|
|
|
%i.fa.fa-comments
|
2014-09-02 18:07:02 +05:30
|
|
|
Discussion
|
2015-04-26 12:48:37 +05:30
|
|
|
%span.badge= @merge_request.mr_and_commit_notes.user.count
|
|
|
|
%li.commits-tab{data: {action: 'commits'}}
|
|
|
|
= link_to merge_request_path(@merge_request), title: 'Commits' do
|
|
|
|
%i.fa.fa-history
|
|
|
|
Commits
|
|
|
|
%span.badge= @commits.size
|
2014-09-02 18:07:02 +05:30
|
|
|
%li.diffs-tab{data: {action: 'diffs'}}
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to diffs_namespace_project_merge_request_path(@project.namespace, @project, @merge_request) do
|
|
|
|
%i.fa.fa-list-alt
|
2014-09-02 18:07:02 +05:30
|
|
|
Changes
|
|
|
|
%span.badge= @merge_request.diffs.size
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.notes.tab-content.voting_notes#notes{ class: (controller.action_name == 'show') ? "" : "hide" }
|
|
|
|
= render "projects/merge_requests/discussion"
|
|
|
|
.commits.tab-content
|
|
|
|
= render "projects/merge_requests/show/commits"
|
2014-09-02 18:07:02 +05:30
|
|
|
.diffs.tab-content
|
|
|
|
- if current_page?(action: 'diffs')
|
|
|
|
= render "projects/merge_requests/show/diffs"
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
.mr-loading-status
|
|
|
|
= spinner
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
:javascript
|
|
|
|
var merge_request;
|
|
|
|
|
|
|
|
merge_request = new MergeRequest({
|
2015-04-26 12:48:37 +05:30
|
|
|
url_to_automerge_check: "#{automerge_check_namespace_project_merge_request_path(@project.namespace, @project, @merge_request)}",
|
2014-09-02 18:07:02 +05:30
|
|
|
check_enable: #{@merge_request.unchecked? ? "true" : "false"},
|
2015-04-26 12:48:37 +05:30
|
|
|
url_to_ci_check: "#{ci_status_namespace_project_merge_request_path(@project.namespace, @project, @merge_request)}",
|
2014-09-02 18:07:02 +05:30
|
|
|
ci_enable: #{@project.ci_service ? "true" : "false"},
|
|
|
|
current_status: "#{@merge_request.merge_status_name}",
|
|
|
|
action: "#{controller.action_name}"
|
|
|
|
});
|