2014-09-02 18:07:02 +05:30
|
|
|
%li{ class: mr_css_classes(merge_request) }
|
|
|
|
.merge-request-title
|
2015-09-11 14:41:01 +05:30
|
|
|
%span.merge-request-title-text
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to_gfm merge_request.title, merge_request_path(merge_request), class: "row_title"
|
2015-12-23 02:04:40 +05:30
|
|
|
%ul.controls.light
|
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
|
|
|
|
|
|
|
- if merge_request.ci_commit
|
|
|
|
%li
|
|
|
|
= render_ci_status(merge_request.ci_commit)
|
|
|
|
|
|
|
|
- if merge_request.open? && merge_request.broken?
|
|
|
|
%li
|
2016-01-14 18:37:52 +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")
|
|
|
|
|
|
|
|
- note_count = merge_request.mr_and_commit_notes.user.count
|
2015-04-26 12:48:37 +05:30
|
|
|
- if note_count > 0
|
2015-12-23 02:04:40 +05:30
|
|
|
%li
|
|
|
|
= link_to merge_request_path(merge_request) + "#notes" do
|
|
|
|
= icon('comments')
|
|
|
|
= note_count
|
2015-09-11 14:41:01 +05:30
|
|
|
- else
|
2015-12-23 02:04:40 +05:30
|
|
|
%li
|
|
|
|
= link_to merge_request_path(merge_request) + "#notes", class: "merge-request-no-comments" do
|
|
|
|
= icon('comments')
|
|
|
|
= note_count
|
2015-09-11 14:41:01 +05:30
|
|
|
|
2014-09-02 18:07:02 +05:30
|
|
|
.merge-request-info
|
2015-12-23 02:04:40 +05:30
|
|
|
\##{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-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|
|
|
|
|
= link_to_label(label, project: merge_request.project)
|
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')}
|