summaryrefslogtreecommitdiff
path: root/app/views/shared/_issuable_meta_data.html.haml
blob: 1264e524d860ab2601c8e73ed37dd9dac1afd260 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
- 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')

- if upvotes > 0
  %li
    = icon('thumbs-up')
    = upvotes

- if downvotes > 0
  %li
    = icon('thumbs-down')
    = downvotes

%li
  = link_to issuable_url, class: ('no-comments' if note_count.zero?) do
    = icon('comments')
    = note_count