2019-02-27 05:28:53 -05:00
|
|
|
- note_count = @issuable_meta_data[issuable.id].user_notes_count
|
2017-01-23 15:40:25 -05:00
|
|
|
- issue_votes = @issuable_meta_data[issuable.id]
|
|
|
|
- upvotes, downvotes = issue_votes.upvotes, issue_votes.downvotes
|
2019-07-18 12:50:05 -04:00
|
|
|
- issuable_path = issuable_path(issuable, anchor: 'notes')
|
2020-06-17 08:08:42 -04:00
|
|
|
- issuable_mr = @issuable_meta_data[issuable.id].merge_requests_count
|
2017-02-16 15:03:42 -05:00
|
|
|
|
|
|
|
- if issuable_mr > 0
|
2020-10-15 08:09:06 -04:00
|
|
|
%li.issuable-mr.gl-display-none.gl-display-sm-block.has-tooltip{ title: _('Related merge requests') }
|
2020-10-30 14:08:56 -04:00
|
|
|
= sprite_icon('merge-request', css_class: "gl-vertical-align-middle")
|
2017-02-16 15:03:42 -05:00
|
|
|
= issuable_mr
|
2017-01-23 15:40:25 -05:00
|
|
|
|
|
|
|
- if upvotes > 0
|
2020-10-15 08:09:06 -04:00
|
|
|
%li.issuable-upvotes.gl-display-none.gl-display-sm-block.has-tooltip{ title: _('Upvotes') }
|
|
|
|
= sprite_icon('thumb-up', css_class: "gl-vertical-align-middle")
|
2017-01-23 15:40:25 -05:00
|
|
|
= upvotes
|
|
|
|
|
|
|
|
- if downvotes > 0
|
2020-10-15 08:09:06 -04:00
|
|
|
%li.issuable-downvotes.gl-display-none.gl-display-sm-block.has-tooltip{ title: _('Downvotes') }
|
|
|
|
= sprite_icon('thumb-down', css_class: "gl-vertical-align-middle")
|
2017-01-23 15:40:25 -05:00
|
|
|
= downvotes
|
|
|
|
|
2020-10-15 08:09:06 -04:00
|
|
|
= render_if_exists 'shared/issuable/blocking_issues_count', issuable: issuable
|
|
|
|
|
|
|
|
%li.issuable-comments.gl-display-none.gl-display-sm-block
|
2020-07-30 14:09:39 -04:00
|
|
|
= link_to issuable_path, class: ['has-tooltip', ('no-comments' if note_count == 0)], title: _('Comments') do
|
2020-08-10 14:09:54 -04:00
|
|
|
= sprite_icon('comments', css_class: 'gl-vertical-align-text-bottom')
|
2017-01-23 15:40:25 -05:00
|
|
|
= note_count
|