gitlab-org--gitlab-foss/app/views/merge_requests/_merge_request.html.haml

33 lines
1.1 KiB
Text
Raw Normal View History

%li{ class: mr_css_classes(merge_request) }
2012-03-22 16:57:04 -04:00
.right
.left
- if merge_request.merged?
2012-07-05 02:35:23 -04:00
%span.btn.small.disabled.grouped
%strong
%i.icon-ok
= "MERGED"
2012-03-22 16:57:04 -04:00
- if merge_request.notes.any?
2012-07-05 02:35:23 -04:00
%span.btn.small.disabled.grouped
2012-06-26 14:20:05 -04:00
%i.icon-comment
= merge_request.mr_and_commit_notes.count
- if merge_request.milestone_id?
%span.btn.small.disabled.grouped
%i.icon-time
= merge_request.milestone.title
2012-07-05 02:35:23 -04:00
%span.btn.small.disabled.grouped
2012-03-22 16:57:04 -04:00
= merge_request.source_branch
→
= merge_request.target_branch
= image_tag gravatar_icon(merge_request.author_email), class: "avatar"
2012-07-17 01:17:16 -04:00
%p= link_to_gfm truncate(merge_request.title, length: 80), project_merge_request_path(merge_request.project, merge_request), class: "row_title"
2012-07-17 01:17:16 -04:00
2011-11-28 13:30:35 -05:00
%span.update-author
2012-07-17 01:17:16 -04:00
%small.cdark= "##{merge_request.id}"
authored by #{merge_request.author_name}
2011-11-28 13:30:35 -05:00
= time_ago_in_words(merge_request.created_at)
ago
2012-09-10 09:27:14 -04:00
2012-09-08 10:44:56 -04:00
- if merge_request.votes_count > 0
2012-09-10 09:27:14 -04:00
= render 'votes/votes_inline', votable: merge_request