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 } }
|
2016-09-06 08:49:49 -04:00
|
|
|
- if @bulk_edit
|
|
|
|
.issue-check
|
|
|
|
= check_box_tag dom_id(merge_request, "selected"), nil, false, 'data-id' => merge_request.id, class: "selected_issue"
|
|
|
|
|
2017-02-07 05:30:44 -05:00
|
|
|
.issue-info-container
|
|
|
|
.merge-request-title.title
|
|
|
|
%span.merge-request-title-text
|
|
|
|
= link_to merge_request.title, merge_request_path(merge_request)
|
|
|
|
%ul.controls
|
|
|
|
- if merge_request.merged?
|
|
|
|
%li
|
|
|
|
MERGED
|
|
|
|
- elsif merge_request.closed?
|
|
|
|
%li
|
|
|
|
= icon('ban')
|
|
|
|
CLOSED
|
2015-12-08 15:43:11 -05:00
|
|
|
|
2017-02-07 05:30:44 -05:00
|
|
|
- if merge_request.head_pipeline
|
|
|
|
%li
|
|
|
|
= render_pipeline_status(merge_request.head_pipeline)
|
2015-12-08 15:43:11 -05:00
|
|
|
|
2017-02-07 05:30:44 -05:00
|
|
|
- if merge_request.open? && merge_request.broken?
|
|
|
|
%li
|
|
|
|
= link_to merge_request_path(merge_request), class: "has-tooltip", title: "Cannot be merged automatically", data: { container: 'body' } do
|
|
|
|
= icon('exclamation-triangle')
|
2015-12-08 15:43:11 -05:00
|
|
|
|
2017-02-07 05:30:44 -05:00
|
|
|
- if merge_request.assignee
|
|
|
|
%li
|
|
|
|
= link_to_member(merge_request.source_project, merge_request.assignee, name: false, title: "Assigned to :name")
|
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
|
|
|
|
2017-02-07 05:30:44 -05:00
|
|
|
.merge-request-info
|
|
|
|
#{issuable_reference(merge_request)} ·
|
|
|
|
opened #{time_ago_with_tooltip(merge_request.created_at, placement: 'bottom')}
|
|
|
|
by #{link_to_member(@project, merge_request.author, avatar: false)}
|
|
|
|
- if merge_request.target_project.default_branch != merge_request.target_branch
|
|
|
|
|
2017-05-11 11:47:44 -04:00
|
|
|
= link_to project_ref_path(merge_request.project, merge_request.target_branch), class: 'ref-name' do
|
2017-02-07 05:30:44 -05:00
|
|
|
= icon('code-fork')
|
|
|
|
= merge_request.target_branch
|
2016-11-18 07:20:45 -05:00
|
|
|
|
2017-02-07 05:30:44 -05:00
|
|
|
- if merge_request.milestone
|
|
|
|
|
|
|
|
= link_to namespace_project_merge_requests_path(merge_request.project.namespace, merge_request.project, milestone_title: merge_request.milestone.title) do
|
|
|
|
= icon('clock-o')
|
|
|
|
= merge_request.milestone.title
|
2016-11-18 07:20:45 -05:00
|
|
|
|
2017-02-07 05:30:44 -05:00
|
|
|
- if merge_request.labels.any?
|
|
|
|
|
|
|
|
- merge_request.labels.each do |label|
|
|
|
|
= link_to_label(label, subject: merge_request.project, type: :merge_request, css_class: 'label-link')
|
2016-12-23 06:50:31 -05:00
|
|
|
|
2017-02-07 05:30:44 -05:00
|
|
|
- if merge_request.tasks?
|
|
|
|
|
|
|
|
%span.task-status
|
|
|
|
= merge_request.task_status
|
2013-04-06 08:10:24 -04:00
|
|
|
|
2017-02-07 05:30:44 -05:00
|
|
|
.pull-right.hidden-xs
|
|
|
|
%span updated #{time_ago_with_tooltip(merge_request.updated_at, placement: 'bottom', html_class: 'merge_request_updated_ago')}
|