2012-12-17 22:14:05 -05:00
|
|
|
%li{ class: mr_css_classes(merge_request) }
|
2013-04-06 08:10:24 -04:00
|
|
|
.merge-request-title
|
2015-06-08 10:33:33 -04:00
|
|
|
%span.merge-request-title-text
|
2015-02-25 22:50:01 -05:00
|
|
|
= link_to_gfm merge_request.title, merge_request_path(merge_request), class: "row_title"
|
2015-12-08 15:43:11 -05:00
|
|
|
%ul.controls.light
|
2015-02-20 00:55:47 -05:00
|
|
|
- if merge_request.merged?
|
2015-12-08 15:43:11 -05:00
|
|
|
%li
|
2015-06-18 13:15:17 -04:00
|
|
|
MERGED
|
2015-02-20 00:55:47 -05:00
|
|
|
- elsif merge_request.closed?
|
2015-12-08 15:43:11 -05:00
|
|
|
%li
|
2015-12-02 08:20:03 -05:00
|
|
|
= icon('ban')
|
2015-06-18 13:15:17 -04:00
|
|
|
CLOSED
|
2015-12-08 15:43:11 -05:00
|
|
|
|
2015-12-09 15:06:04 -05:00
|
|
|
- if merge_request.ci_commit
|
2015-12-08 15:43:11 -05:00
|
|
|
%li
|
2015-12-09 15:06:04 -05:00
|
|
|
= render_ci_status(merge_request.ci_commit)
|
2015-12-08 15:43:11 -05:00
|
|
|
|
|
|
|
- if merge_request.open? && merge_request.broken?
|
|
|
|
%li
|
2015-12-18 05:19:08 -05:00
|
|
|
= link_to merge_request_path(merge_request), class: "has_tooltip", title: "Cannot be merged automatically", data: { container: 'body' } do
|
2015-12-08 15:43:11 -05:00
|
|
|
= icon('exclamation-triangle')
|
|
|
|
|
2015-04-21 04:28:03 -04:00
|
|
|
- if merge_request.assignee
|
2015-12-08 15:43:11 -05:00
|
|
|
%li
|
|
|
|
= link_to_member(merge_request.source_project, merge_request.assignee, name: false, title: "Assigned to :name")
|
|
|
|
|
|
|
|
- note_count = merge_request.mr_and_commit_notes.user.count
|
2015-03-23 11:43:08 -04:00
|
|
|
- if note_count > 0
|
2015-12-08 15:43:11 -05:00
|
|
|
%li
|
|
|
|
= link_to merge_request_path(merge_request) + "#notes" do
|
|
|
|
= icon('comments')
|
|
|
|
= note_count
|
2015-04-21 04:28:03 -04:00
|
|
|
- else
|
2015-12-08 15:43:11 -05:00
|
|
|
%li
|
|
|
|
= link_to merge_request_path(merge_request) + "#notes", class: "merge-request-no-comments" do
|
|
|
|
= icon('comments')
|
|
|
|
= note_count
|
2015-04-21 04:28:03 -04:00
|
|
|
|
2013-04-06 08:10:24 -04:00
|
|
|
.merge-request-info
|
2015-12-02 08:19:25 -05:00
|
|
|
\##{merge_request.iid} ·
|
|
|
|
opened #{time_ago_with_tooltip(merge_request.created_at, placement: 'bottom')}
|
|
|
|
by #{link_to_member(@project, merge_request.author, avatar: false)}
|
2015-11-03 09:44:14 -05:00
|
|
|
- if merge_request.target_project.default_branch != merge_request.target_branch
|
|
|
|
|
2015-12-02 11:37:06 -05:00
|
|
|
= link_to namespace_project_commits_path(merge_request.project.namespace, merge_request.project, merge_request.target_branch) do
|
|
|
|
= icon('code-fork')
|
2015-11-03 09:44:14 -05:00
|
|
|
= merge_request.target_branch
|
2015-12-02 11:37:06 -05:00
|
|
|
- if merge_request.milestone
|
2015-04-21 04:28:03 -04:00
|
|
|
|
2015-12-02 08:19:25 -05:00
|
|
|
= link_to namespace_project_merge_requests_path(merge_request.project.namespace, merge_request.project, milestone_title: merge_request.milestone.title) do
|
|
|
|
= icon('clock-o')
|
2013-04-06 08:10:24 -04:00
|
|
|
= merge_request.milestone.title
|
2015-12-02 08:20:03 -05:00
|
|
|
- if merge_request.labels.any?
|
|
|
|
|
|
|
|
- merge_request.labels.each do |label|
|
|
|
|
= link_to_label(label, project: merge_request.project)
|
2014-10-05 01:53:44 -04:00
|
|
|
- if merge_request.tasks?
|
2015-12-02 08:20:03 -05:00
|
|
|
|
2014-10-05 01:53:44 -04:00
|
|
|
%span.task-status
|
|
|
|
= merge_request.task_status
|
2013-04-06 08:10:24 -04:00
|
|
|
|
2014-12-02 04:31:57 -05:00
|
|
|
.pull-right.hidden-xs
|
2015-09-08 03:32:06 -04:00
|
|
|
%span updated #{time_ago_with_tooltip(merge_request.updated_at, placement: 'bottom', html_class: 'merge_request_updated_ago')}
|