52 lines
1.8 KiB
Text
52 lines
1.8 KiB
Text
- ci_commit = merge_request.ci_commit
|
|
%li{ class: mr_css_classes(merge_request) }
|
|
.merge-request-title
|
|
%span.merge-request-title-text
|
|
= link_to_gfm merge_request.title, merge_request_path(merge_request), class: "row_title"
|
|
.merge-request-labels
|
|
- merge_request.labels.each do |label|
|
|
= link_to_label(label, project: merge_request.project)
|
|
.pull-right.light
|
|
- if ci_commit
|
|
= render_ci_status(ci_commit)
|
|
- if merge_request.merged?
|
|
%span
|
|
%i.fa.fa-check
|
|
MERGED
|
|
- elsif merge_request.closed?
|
|
%span
|
|
%i.fa.fa-ban
|
|
CLOSED
|
|
- note_count = merge_request.mr_and_commit_notes.user.count
|
|
- if merge_request.assignee
|
|
|
|
= link_to_member(merge_request.source_project, merge_request.assignee, name: false)
|
|
- if note_count > 0
|
|
|
|
%span
|
|
%i.fa.fa-comments
|
|
= note_count
|
|
- else
|
|
|
|
%span.merge-request-no-comments
|
|
%i.fa.fa-comments
|
|
= 0
|
|
|
|
.merge-request-info
|
|
= "##{merge_request.iid} opened #{time_ago_with_tooltip(merge_request.created_at, placement: 'bottom')} by #{link_to_member(@project, merge_request.author, avatar: false)}".html_safe
|
|
- if merge_request.milestone_id?
|
|
|
|
%span
|
|
%i.fa.fa-clock-o
|
|
= merge_request.milestone.title
|
|
- if merge_request.target_project.default_branch != merge_request.target_branch
|
|
|
|
%span
|
|
%i.fa.fa-code-fork
|
|
= merge_request.target_branch
|
|
- if merge_request.tasks?
|
|
%span.task-status
|
|
= merge_request.task_status
|
|
|
|
.pull-right.hidden-xs
|
|
%span updated #{time_ago_with_tooltip(merge_request.updated_at, placement: 'bottom', html_class: 'merge_request_updated_ago')}
|