2017-01-23 15:40:25 -05:00
|
|
|
- note_count = @issuable_meta_data[issuable.id].notes_count
|
|
|
|
- issue_votes = @issuable_meta_data[issuable.id]
|
|
|
|
- upvotes, downvotes = issue_votes.upvotes, issue_votes.downvotes
|
|
|
|
- issuable_url = @collection_type == "Issue" ? issue_path(issuable, anchor: 'notes') : merge_request_path(issuable, anchor: 'notes')
|
2017-02-16 15:03:42 -05:00
|
|
|
- issuable_mr = @issuable_meta_data[issuable.id].merge_requests_count
|
|
|
|
|
|
|
|
- if issuable_mr > 0
|
2017-06-29 13:34:06 -04:00
|
|
|
%li.issuable-mr.hidden-xs
|
2017-03-13 20:52:23 -04:00
|
|
|
= image_tag('icon-merge-request-unmerged.svg', class: 'icon-merge-request-unmerged')
|
2017-02-16 15:03:42 -05:00
|
|
|
= issuable_mr
|
2017-01-23 15:40:25 -05:00
|
|
|
|
|
|
|
- if upvotes > 0
|
2017-06-29 13:34:06 -04:00
|
|
|
%li.issuable-upvotes.hidden-xs
|
2017-01-23 15:40:25 -05:00
|
|
|
= icon('thumbs-up')
|
|
|
|
= upvotes
|
|
|
|
|
|
|
|
- if downvotes > 0
|
2017-06-29 13:34:06 -04:00
|
|
|
%li.issuable-downvotes.hidden-xs
|
2017-01-23 15:40:25 -05:00
|
|
|
= icon('thumbs-down')
|
|
|
|
= downvotes
|
|
|
|
|
2017-06-29 13:34:06 -04:00
|
|
|
%li.issuable-comments.hidden-xs
|
2017-01-23 15:40:25 -05:00
|
|
|
= link_to issuable_url, class: ('no-comments' if note_count.zero?) do
|
|
|
|
= icon('comments')
|
|
|
|
= note_count
|