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

47 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-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-09-11 14:41:01 +05:30
.merge-request-labels
- merge_request.labels.each do |label|
= link_to_label(label, project: merge_request.project)
2015-04-26 12:48:37 +05:30
.pull-right.light
- if merge_request.merged?
%span
%i.fa.fa-check
MERGED
- elsif merge_request.closed?
%span
2015-09-11 14:41:01 +05:30
%i.fa.fa-ban
2015-04-26 12:48:37 +05:30
CLOSED
- note_count = merge_request.mr_and_commit_notes.user.count
2015-09-11 14:41:01 +05:30
- if merge_request.assignee
 
= link_to_member(merge_request.source_project, merge_request.assignee, name: false)
2015-04-26 12:48:37 +05:30
- if note_count > 0
 
%span
%i.fa.fa-comments
= note_count
2015-09-11 14:41:01 +05:30
- else
 
%span.merge-request-no-comments
%i.fa.fa-comments
= 0
2014-09-02 18:07:02 +05:30
.merge-request-info
2015-09-11 14:41:01 +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)}".html_safe
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?
2015-09-11 14:41:01 +05:30
 
2014-09-02 18:07:02 +05:30
%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
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')}