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

49 lines
1.6 KiB
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
%li{ class: mr_css_classes(merge_request) }
.merge-request-title
2015-04-26 12:48:37 +05:30
%span.str-truncated
= link_to_gfm merge_request.title, merge_request_path(merge_request), class: "row_title"
.pull-right.light
- if merge_request.merged?
%span
%i.fa.fa-check
MERGED
- elsif merge_request.closed?
%span
%i.fa.fa-close
CLOSED
- else
%span.hidden-xs.hidden-sm
%span.label-branch<
%i.fa.fa-code-fork
%span= merge_request.target_branch
- note_count = merge_request.mr_and_commit_notes.user.count
- if note_count > 0
&nbsp;
%span
%i.fa.fa-comments
= note_count
2014-09-02 18:07:02 +05:30
.merge-request-info
2015-04-26 12:48:37 +05:30
= link_to "##{merge_request.iid}", merge_request_path(merge_request), class: "light"
- if merge_request.assignee
assigned to #{link_to_member(merge_request.source_project, merge_request.assignee)}
- else
Unassigned
2014-09-02 18:07:02 +05:30
- if merge_request.votes_count > 0
= render 'votes/votes_inline', votable: merge_request
- if merge_request.milestone_id?
%span
2015-04-26 12:48:37 +05:30
%i.fa.fa-clock-o
2014-09-02 18:07:02 +05:30
= merge_request.milestone.title
2015-04-26 12:48:37 +05:30
- if merge_request.tasks?
%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
2014-09-02 18:07:02 +05:30
%small updated #{time_ago_with_tooltip(merge_request.updated_at, 'bottom', 'merge_request_updated_ago')}
.merge-request-labels
- merge_request.labels.each do |label|
2015-04-26 12:48:37 +05:30
= link_to namespace_project_merge_requests_path(merge_request.project.namespace, merge_request.project, label_name: label.name) do
= render_colored_label(label)