64 lines
3.0 KiB
Plaintext
64 lines
3.0 KiB
Plaintext
%li{ id: dom_id(merge_request), class: mr_css_classes(merge_request), data: { labels: merge_request.label_ids, id: merge_request.id } }
|
|
- if @can_bulk_update
|
|
.issue-check.hidden
|
|
= check_box_tag dom_id(merge_request, "selected"), nil, false, 'data-id' => merge_request.id, class: "selected_issue"
|
|
|
|
.issue-info-container
|
|
.issue-main-info
|
|
.merge-request-title.title
|
|
%span.merge-request-title-text
|
|
= link_to merge_request.title, merge_request_path(merge_request)
|
|
- if merge_request.tasks?
|
|
%span.task-status.hidden-xs
|
|
|
|
= merge_request.task_status
|
|
|
|
.issuable-info
|
|
%span.issuable-reference
|
|
#{issuable_reference(merge_request)}
|
|
%span.issuable-authored.hidden-xs
|
|
·
|
|
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
|
|
%span.issuable-milestone.hidden-xs
|
|
|
|
= link_to project_merge_requests_path(merge_request.project, milestone_title: merge_request.milestone.title), data: { html: 1, toggle: 'tooltip', title: milestone_tooltip_title(merge_request.milestone) } do
|
|
= icon('clock-o')
|
|
= merge_request.milestone.title
|
|
- if merge_request.target_project.default_branch != merge_request.target_branch
|
|
%span.project-ref-path
|
|
|
|
= link_to project_ref_path(merge_request.project, merge_request.target_branch), class: 'ref-name' do
|
|
= icon('code-fork')
|
|
= merge_request.target_branch
|
|
- 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')
|
|
|
|
.issuable-meta
|
|
%ul.controls
|
|
- if merge_request.merged?
|
|
%li.issuable-status.hidden-xs
|
|
MERGED
|
|
- elsif merge_request.closed?
|
|
%li.issuable-status.hidden-xs
|
|
= icon('ban')
|
|
CLOSED
|
|
- if merge_request.head_pipeline
|
|
%li.issuable-pipeline-status.hidden-xs
|
|
= render_pipeline_status(merge_request.head_pipeline)
|
|
- if merge_request.open? && merge_request.broken?
|
|
%li.issuable-pipeline-broken.hidden-xs
|
|
= link_to merge_request_path(merge_request), class: "has-tooltip", title: "Cannot be merged automatically", data: { container: 'body' } do
|
|
= icon('exclamation-triangle')
|
|
- if merge_request.assignee
|
|
%li
|
|
= link_to_member(merge_request.source_project, merge_request.assignee, name: false, title: "Assigned to :name")
|
|
|
|
= render 'shared/issuable_meta_data', issuable: merge_request
|
|
|
|
.pull-right.issuable-updated-at.hidden-xs
|
|
%span updated #{time_ago_with_tooltip(merge_request.updated_at, placement: 'bottom', html_class: 'merge_request_updated_ago')}
|