debian-mirror-gitlab/app/views/projects/merge_requests/_show.html.haml

96 lines
4 KiB
Text
Raw Normal View History

- page_title "#{@merge_request.title} (##{@merge_request.iid})", "Merge Requests"
- page_description @merge_request.description
- page_card_attributes @merge_request.card_attributes
2015-09-25 12:07:36 +05:30
= render "header_title"
- if params[:view] == 'parallel'
- fluid_layout true
2015-04-26 12:48:37 +05:30
.merge-request{'data-url' => merge_request_path(@merge_request)}
2015-12-23 02:04:40 +05:30
= render "projects/merge_requests/show/mr_title"
2015-09-11 14:41:01 +05:30
.merge-request-details.issuable-details
2015-04-26 12:48:37 +05:30
= render "projects/merge_requests/show/mr_box"
2015-12-23 02:04:40 +05:30
.append-bottom-default.mr-source-target.prepend-top-default
2015-09-11 14:41:01 +05:30
- if @merge_request.open?
.pull-right
- if @merge_request.source_branch_exists?
= link_to "#modal_merge_info", class: "btn btn-sm", "data-toggle" => "modal" do
= icon('cloud-download fw')
Check out branch
%span.dropdown
%a.btn.btn-sm.dropdown-toggle{ data: {toggle: :dropdown} }
= icon('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)
2015-10-24 18:46:33 +05:30
.normal
2015-09-11 14:41:01 +05:30
%span Request to merge
2015-12-23 02:04:40 +05:30
%span.label-branch= source_branch_with_namespace(@merge_request)
2015-09-11 14:41:01 +05:30
%span into
2015-12-23 02:04:40 +05:30
= link_to namespace_project_commits_path(@project.namespace, @project, @merge_request.target_branch), class: "label-branch" do
= @merge_request.target_branch
2015-04-26 12:48:37 +05:30
= render "projects/merge_requests/show/how_to_merge"
2015-09-11 14:41:01 +05:30
= render "projects/merge_requests/widget/show.html.haml"
- if @merge_request.source_branch_exists? && @merge_request.mergeable? && @merge_request.can_be_merged_by?(current_user)
2015-12-23 02:04:40 +05:30
.light.prepend-top-default
2015-09-11 14:41:01 +05:30
You can also accept this merge request manually using the
2015-10-24 18:46:33 +05:30
= succeed '.' do
= link_to "command line", "#modal_merge_info", class: "how_to_merge_link vlink", title: "How To Merge", "data-toggle" => "modal"
2014-09-02 18:07:02 +05:30
2015-12-23 02:04:40 +05:30
- if @commits.present?
%ul.merge-request-tabs.nav-links.no-top.no-bottom
2015-12-23 02:04:40 +05:30
%li.notes-tab
= link_to namespace_project_merge_request_path(@project.namespace, @project, @merge_request), data: {target: 'div#notes', action: 'notes', toggle: 'tab'} do
Discussion
%span.badge= @merge_request.mr_and_commit_notes.user.count
%li.commits-tab
= link_to commits_namespace_project_merge_request_path(@project.namespace, @project, @merge_request), data: {target: 'div#commits', action: 'commits', toggle: 'tab'} do
Commits
%span.badge= @commits.size
- if @ci_commit
%li.builds-tab
= link_to builds_namespace_project_merge_request_path(@project.namespace, @project, @merge_request), data: {target: '#builds', action: 'builds', toggle: 'tab'} do
Builds
%span.badge= @statuses.size
%li.diffs-tab
= link_to diffs_namespace_project_merge_request_path(@project.namespace, @project, @merge_request), data: {target: 'div#diffs', action: 'diffs', toggle: 'tab'} do
Changes
%span.badge= @merge_request.diffs.size
.tab-content
#notes.notes.tab-pane.voting_notes
.gray-content-block.second-block.oneline-block
= render 'votes/votes_block', votable: @merge_request
.row
%section.col-md-9
.issuable-discussion
= render "projects/merge_requests/discussion"
%aside.col-md-3
= render 'shared/issuable/sidebar', issuable: @merge_request
= render 'shared/show_aside'
2014-09-02 18:07:02 +05:30
2015-12-23 02:04:40 +05:30
#commits.commits.tab-pane
- # This tab is always loaded via AJAX
#builds.builds.tab-pane
- # This tab is always loaded via AJAX
#diffs.diffs.tab-pane
- # This tab is always loaded via AJAX
2015-04-26 12:48:37 +05:30
2015-12-23 02:04:40 +05:30
.mr-loading-status
= spinner
2014-09-02 18:07:02 +05:30
:javascript
var merge_request;
merge_request = new MergeRequest({
action: "#{controller.action_name}"
});