2014-09-02 18:07:02 +05:30
|
|
|
%li{ class: mr_css_classes(merge_request) }
|
2016-09-29 09:46:39 +05:30
|
|
|
- if @bulk_edit
|
|
|
|
.issue-check
|
|
|
|
= check_box_tag dom_id(merge_request, "selected"), nil, false, 'data-id' => merge_request.id, class: "selected_issue"
|
|
|
|
|
2016-06-02 11:05:42 +05:30
|
|
|
.merge-request-title.title
|
2015-09-11 14:41:01 +05:30
|
|
|
%span.merge-request-title-text
|
2016-06-16 23:09:34 +05:30
|
|
|
= link_to merge_request.title, merge_request_path(merge_request)
|
2016-06-02 11:05:42 +05:30
|
|
|
%ul.controls
|
2015-04-26 12:48:37 +05:30
|
|
|
- if merge_request.merged?
|
2015-12-23 02:04:40 +05:30
|
|
|
%li
|
2015-04-26 12:48:37 +05:30
|
|
|
MERGED
|
|
|
|
- elsif merge_request.closed?
|
2015-12-23 02:04:40 +05:30
|
|
|
%li
|
|
|
|
= icon('ban')
|
2015-04-26 12:48:37 +05:30
|
|
|
CLOSED
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
- if merge_request.pipeline
|
2015-12-23 02:04:40 +05:30
|
|
|
%li
|
2016-06-16 23:09:34 +05:30
|
|
|
= render_pipeline_status(merge_request.pipeline)
|
2015-12-23 02:04:40 +05:30
|
|
|
|
|
|
|
- if merge_request.open? && merge_request.broken?
|
|
|
|
%li
|
2016-06-02 11:05:42 +05:30
|
|
|
= link_to merge_request_path(merge_request), class: "has-tooltip", title: "Cannot be merged automatically", data: { container: 'body' } do
|
2015-12-23 02:04:40 +05:30
|
|
|
= icon('exclamation-triangle')
|
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if merge_request.assignee
|
2015-12-23 02:04:40 +05:30
|
|
|
%li
|
|
|
|
= link_to_member(merge_request.source_project, merge_request.assignee, name: false, title: "Assigned to :name")
|
|
|
|
|
2016-04-02 18:10:28 +05:30
|
|
|
- upvotes, downvotes = merge_request.upvotes, merge_request.downvotes
|
|
|
|
- if upvotes > 0
|
|
|
|
%li
|
|
|
|
= icon('thumbs-up')
|
|
|
|
= upvotes
|
|
|
|
|
|
|
|
- if downvotes > 0
|
|
|
|
%li
|
|
|
|
= icon('thumbs-down')
|
|
|
|
= downvotes
|
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
- note_count = merge_request.mr_and_commit_notes.user.count
|
2016-06-02 11:05:42 +05:30
|
|
|
%li
|
2016-09-29 09:46:39 +05:30
|
|
|
= link_to merge_request_path(merge_request, anchor: 'notes'), class: ('no-comments' if note_count.zero?) do
|
2016-06-02 11:05:42 +05:30
|
|
|
= icon('comments')
|
|
|
|
= note_count
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
.merge-request-info
|
2016-06-02 11:05:42 +05:30
|
|
|
#{merge_request.to_reference} ·
|
2015-12-23 02:04:40 +05:30
|
|
|
opened #{time_ago_with_tooltip(merge_request.created_at, placement: 'bottom')}
|
|
|
|
by #{link_to_member(@project, merge_request.author, avatar: false)}
|
2015-11-26 14:37:03 +05:30
|
|
|
- if merge_request.target_project.default_branch != merge_request.target_branch
|
|
|
|
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to namespace_project_commits_path(merge_request.project.namespace, merge_request.project, merge_request.target_branch) do
|
|
|
|
= icon('code-fork')
|
2015-11-26 14:37:03 +05:30
|
|
|
= merge_request.target_branch
|
2015-12-23 02:04:40 +05:30
|
|
|
- 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
|
|
|
|
- if merge_request.labels.any?
|
|
|
|
|
|
|
|
- merge_request.labels.each do |label|
|
2016-04-02 18:10:28 +05:30
|
|
|
= link_to_label(label, project: merge_request.project, type: 'merge_request')
|
2015-04-26 12:48:37 +05:30
|
|
|
- if merge_request.tasks?
|
2015-12-23 02:04:40 +05:30
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
%span.task-status
|
|
|
|
= merge_request.task_status
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
.pull-right.hidden-xs
|
2015-09-25 12:07:36 +05:30
|
|
|
%span updated #{time_ago_with_tooltip(merge_request.updated_at, placement: 'bottom', html_class: 'merge_request_updated_ago')}
|