2017-08-17 22:00:37 +05:30
|
|
|
%li{ id: dom_id(merge_request), class: mr_css_classes(merge_request), data: { labels: merge_request.label_ids, id: merge_request.id } }
|
2017-09-10 17:25:29 +05:30
|
|
|
- if @can_bulk_update
|
|
|
|
.issue-check.hidden
|
2018-12-05 23:21:45 +05:30
|
|
|
= check_box_tag dom_id(merge_request, "selected"), nil, false, 'data-id' => merge_request.id, class: "selected-issuable"
|
2016-09-29 09:46:39 +05:30
|
|
|
|
2018-12-05 23:21:45 +05:30
|
|
|
.issuable-info-container
|
|
|
|
.issuable-main-info
|
2017-09-10 17:25:29 +05:30
|
|
|
.merge-request-title.title
|
|
|
|
%span.merge-request-title-text
|
|
|
|
= link_to merge_request.title, merge_request_path(merge_request)
|
|
|
|
- if merge_request.tasks?
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.task-status.d-none.d-sm-inline-block
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
= merge_request.task_status
|
|
|
|
|
|
|
|
.issuable-info
|
|
|
|
%span.issuable-reference
|
|
|
|
#{issuable_reference(merge_request)}
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.issuable-authored.d-none.d-sm-inline-block
|
2017-09-10 17:25:29 +05:30
|
|
|
·
|
|
|
|
opened #{time_ago_with_tooltip(merge_request.created_at, placement: 'bottom')}
|
|
|
|
by #{link_to_member(@project, merge_request.author, avatar: false)}
|
|
|
|
- if merge_request.milestone
|
2018-11-08 19:23:39 +05:30
|
|
|
%span.issuable-milestone.d-none.d-sm-inline-block
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
= link_to project_merge_requests_path(merge_request.project, milestone_title: merge_request.milestone.title), data: { html: 'true', toggle: 'tooltip', title: milestone_tooltip_due_date(merge_request.milestone) } do
|
2017-09-10 17:25:29 +05:30
|
|
|
= icon('clock-o')
|
|
|
|
= merge_request.milestone.title
|
|
|
|
- if merge_request.target_project.default_branch != merge_request.target_branch
|
2018-05-09 12:01:36 +05:30
|
|
|
%span.project-ref-path.has-tooltip{ title: _('Target branch') }
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
= link_to project_ref_path(merge_request.project, merge_request.target_branch), class: 'ref-name' do
|
2018-03-17 18:26:18 +05:30
|
|
|
= sprite_icon('fork', size: 12, css_class: 'fork-sprite')
|
2017-09-10 17:25:29 +05:30
|
|
|
= merge_request.target_branch
|
|
|
|
- if merge_request.labels.any?
|
|
|
|
|
2019-07-07 11:18:12 +05:30
|
|
|
- labels_sorted_by_title(merge_request.labels).each do |label|
|
2017-09-10 17:25:29 +05:30
|
|
|
= link_to_label(label, subject: merge_request.project, type: :merge_request, css_class: 'label-link')
|
|
|
|
|
|
|
|
.issuable-meta
|
2017-08-17 22:00:37 +05:30
|
|
|
%ul.controls
|
|
|
|
- if merge_request.merged?
|
2018-11-08 19:23:39 +05:30
|
|
|
%li.issuable-status.d-none.d-sm-inline-block
|
2017-08-17 22:00:37 +05:30
|
|
|
MERGED
|
|
|
|
- elsif merge_request.closed?
|
2018-11-08 19:23:39 +05:30
|
|
|
%li.issuable-status.d-none.d-sm-inline-block
|
2017-08-17 22:00:37 +05:30
|
|
|
= icon('ban')
|
|
|
|
CLOSED
|
2019-02-02 18:00:53 +05:30
|
|
|
- if can?(current_user, :read_pipeline, merge_request.head_pipeline)
|
2018-11-08 19:23:39 +05:30
|
|
|
%li.issuable-pipeline-status.d-none.d-sm-inline-block
|
2019-07-07 11:18:12 +05:30
|
|
|
= render 'ci/status/icon', status: merge_request.head_pipeline.detailed_status(current_user)
|
2017-08-17 22:00:37 +05:30
|
|
|
- if merge_request.open? && merge_request.broken?
|
2018-11-08 19:23:39 +05:30
|
|
|
%li.issuable-pipeline-broken.d-none.d-sm-inline-block
|
2018-05-09 12:01:36 +05:30
|
|
|
= link_to merge_request_path(merge_request), class: "has-tooltip", title: _('Cannot be merged automatically') do
|
2017-08-17 22:00:37 +05:30
|
|
|
= icon('exclamation-triangle')
|
|
|
|
- if merge_request.assignee
|
|
|
|
%li
|
2018-05-09 12:01:36 +05:30
|
|
|
= link_to_member(merge_request.source_project, merge_request.assignee, name: false, title: _('Assigned to :name'))
|
2019-03-02 22:35:43 +05:30
|
|
|
= render_if_exists 'projects/merge_requests/approvals_count', merge_request: merge_request
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
= render 'shared/issuable_meta_data', issuable: merge_request
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.float-right.issuable-updated-at.d-none.d-sm-inline-block
|
2017-08-17 22:00:37 +05:30
|
|
|
%span updated #{time_ago_with_tooltip(merge_request.updated_at, placement: 'bottom', html_class: 'merge_request_updated_ago')}
|