2016-11-29 02:47:02 -05:00
|
|
|
%li{ id: dom_id(merge_request), class: mr_css_classes(merge_request), data: { labels: merge_request.label_ids, id: merge_request.id } }
|
2017-05-15 18:12:43 -04:00
|
|
|
- if @can_bulk_update
|
|
|
|
.issue-check.hidden
|
2018-09-21 10:05:55 -04:00
|
|
|
= check_box_tag dom_id(merge_request, "selected"), nil, false, 'data-id' => merge_request.id, class: "selected-issuable"
|
2016-09-06 08:49:49 -04:00
|
|
|
|
2018-09-21 10:05:55 -04:00
|
|
|
.issuable-info-container
|
|
|
|
.issuable-main-info
|
2017-06-29 13:34:06 -04:00
|
|
|
.merge-request-title.title
|
2019-06-24 10:30:03 -04:00
|
|
|
%span.merge-request-title-text.js-onboarding-mr-item
|
2017-06-29 13:34:06 -04:00
|
|
|
= link_to merge_request.title, merge_request_path(merge_request)
|
|
|
|
- if merge_request.tasks?
|
2018-04-10 16:18:09 -04:00
|
|
|
%span.task-status.d-none.d-sm-inline-block
|
2017-06-29 13:34:06 -04:00
|
|
|
|
|
|
|
= merge_request.task_status
|
|
|
|
|
|
|
|
.issuable-info
|
|
|
|
%span.issuable-reference
|
|
|
|
#{issuable_reference(merge_request)}
|
2018-04-10 16:18:09 -04:00
|
|
|
%span.issuable-authored.d-none.d-sm-inline-block
|
2017-06-29 13:34:06 -04:00
|
|
|
·
|
|
|
|
opened #{time_ago_with_tooltip(merge_request.created_at, placement: 'bottom')}
|
|
|
|
by #{link_to_member(@project, merge_request.author, avatar: false)}
|
2020-04-07 02:09:25 -04:00
|
|
|
= gitlab_team_member_badge(merge_request.author)
|
2017-06-29 13:34:06 -04:00
|
|
|
- if merge_request.milestone
|
2018-04-10 16:18:09 -04:00
|
|
|
%span.issuable-milestone.d-none.d-sm-inline-block
|
2017-06-29 13:34:06 -04:00
|
|
|
|
2018-04-19 14:43:06 -04:00
|
|
|
= 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-06-29 13:34:06 -04:00
|
|
|
= icon('clock-o')
|
|
|
|
= merge_request.milestone.title
|
|
|
|
- if merge_request.target_project.default_branch != merge_request.target_branch
|
2018-03-21 12:27:19 -04:00
|
|
|
%span.project-ref-path.has-tooltip{ title: _('Target branch') }
|
2017-06-29 13:34:06 -04:00
|
|
|
|
|
|
|
= link_to project_ref_path(merge_request.project, merge_request.target_branch), class: 'ref-name' do
|
2017-12-06 13:38:35 -05:00
|
|
|
= sprite_icon('fork', size: 12, css_class: 'fork-sprite')
|
2017-06-29 13:34:06 -04:00
|
|
|
= merge_request.target_branch
|
|
|
|
- if merge_request.labels.any?
|
|
|
|
|
2019-04-23 15:58:20 -04:00
|
|
|
- presented_labels_sorted_by_title(merge_request.labels, merge_request.project).each do |label|
|
2020-02-25 10:08:50 -05:00
|
|
|
= link_to_label(label, type: :merge_request, small: true)
|
2017-06-29 13:34:06 -04:00
|
|
|
|
|
|
|
.issuable-meta
|
2019-07-10 05:35:30 -04:00
|
|
|
%ul.controls.d-flex.align-items-end
|
2017-02-07 05:30:44 -05:00
|
|
|
- if merge_request.merged?
|
2018-04-10 16:18:09 -04:00
|
|
|
%li.issuable-status.d-none.d-sm-inline-block
|
2019-08-12 15:53:14 -04:00
|
|
|
= _('MERGED')
|
2017-02-07 05:30:44 -05:00
|
|
|
- elsif merge_request.closed?
|
2018-04-10 16:18:09 -04:00
|
|
|
%li.issuable-status.d-none.d-sm-inline-block
|
2017-02-07 05:30:44 -05:00
|
|
|
= icon('ban')
|
2019-08-12 15:53:14 -04:00
|
|
|
= _('CLOSED')
|
2020-04-07 08:09:34 -04:00
|
|
|
= render 'shared/merge_request_pipeline_status', merge_request: merge_request
|
2017-02-07 05:30:44 -05:00
|
|
|
- if merge_request.open? && merge_request.broken?
|
2019-07-10 05:35:30 -04:00
|
|
|
%li.issuable-pipeline-broken.d-none.d-sm-flex
|
2018-03-21 12:27:19 -04:00
|
|
|
= link_to merge_request_path(merge_request), class: "has-tooltip", title: _('Cannot be merged automatically') do
|
2017-02-07 05:30:44 -05:00
|
|
|
= icon('exclamation-triangle')
|
2019-04-07 14:35:16 -04:00
|
|
|
- if merge_request.assignees.any?
|
2019-07-10 05:35:30 -04:00
|
|
|
%li.d-flex
|
2019-04-07 14:35:16 -04:00
|
|
|
= render 'shared/issuable/assignees', project: merge_request.project, issuable: merge_request
|
2019-01-24 09:53:05 -05:00
|
|
|
= render_if_exists 'projects/merge_requests/approvals_count', merge_request: merge_request
|
2015-12-08 15:43:11 -05:00
|
|
|
|
2017-01-23 15:40:25 -05:00
|
|
|
= render 'shared/issuable_meta_data', issuable: merge_request
|
2015-04-21 04:28:03 -04:00
|
|
|
|
2018-04-10 16:18:09 -04:00
|
|
|
.float-right.issuable-updated-at.d-none.d-sm-inline-block
|
2019-08-12 15:53:14 -04:00
|
|
|
%span
|
|
|
|
= _('updated %{time_ago}').html_safe % { time_ago: time_ago_with_tooltip(merge_request.updated_at, placement: 'bottom', html_class: 'merge_request_updated_ago') }
|