debian-mirror-gitlab/app/views/projects/merge_requests/_merge_request.html.haml

64 lines
3 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
%li{ id: dom_id(merge_request), class: mr_css_classes(merge_request), data: { labels: merge_request.label_ids, id: merge_request.id } }
2017-09-10 17:25:29 +05:30
- if @can_bulk_update
.issue-check.hidden
2016-09-29 09:46:39 +05:30
= check_box_tag dom_id(merge_request, "selected"), nil, false, 'data-id' => merge_request.id, class: "selected_issue"
2017-08-17 22:00:37 +05:30
.issue-info-container
2017-09-10 17:25:29 +05:30
.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
 
2018-05-09 12:01:36 +05:30
= link_to project_merge_requests_path(merge_request.project, milestone_title: merge_request.milestone.title), data: { html: 1, toggle: 'tooltip', title: issuable_milestone_tooltip_title(merge_request) } do
2017-09-10 17:25:29 +05:30
= icon('clock-o')
= merge_request.milestone.title
- if merge_request.target_project.default_branch != merge_request.target_branch
2018-05-09 12:01:36 +05:30
%span.project-ref-path.has-tooltip{ title: _('Target branch') }
2017-09-10 17:25:29 +05:30
 
= link_to project_ref_path(merge_request.project, merge_request.target_branch), class: 'ref-name' do
2018-03-17 18:26:18 +05:30
= sprite_icon('fork', size: 12, css_class: 'fork-sprite')
2017-09-10 17:25:29 +05:30
= 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
2017-08-17 22:00:37 +05:30
%ul.controls
- if merge_request.merged?
2017-09-10 17:25:29 +05:30
%li.issuable-status.hidden-xs
2017-08-17 22:00:37 +05:30
MERGED
- elsif merge_request.closed?
2017-09-10 17:25:29 +05:30
%li.issuable-status.hidden-xs
2017-08-17 22:00:37 +05:30
= icon('ban')
CLOSED
- if merge_request.head_pipeline
2017-09-10 17:25:29 +05:30
%li.issuable-pipeline-status.hidden-xs
2017-08-17 22:00:37 +05:30
= render_pipeline_status(merge_request.head_pipeline)
- if merge_request.open? && merge_request.broken?
2017-09-10 17:25:29 +05:30
%li.issuable-pipeline-broken.hidden-xs
2018-05-09 12:01:36 +05:30
= link_to merge_request_path(merge_request), class: "has-tooltip", title: _('Cannot be merged automatically') do
2017-08-17 22:00:37 +05:30
= icon('exclamation-triangle')
- if merge_request.assignee
%li
2018-05-09 12:01:36 +05:30
= link_to_member(merge_request.source_project, merge_request.assignee, name: false, title: _('Assigned to :name'))
2017-08-17 22:00:37 +05:30
= render 'shared/issuable_meta_data', issuable: merge_request
2017-09-10 17:25:29 +05:30
.pull-right.issuable-updated-at.hidden-xs
2017-08-17 22:00:37 +05:30
%span updated #{time_ago_with_tooltip(merge_request.updated_at, placement: 'bottom', html_class: 'merge_request_updated_ago')}