2019-07-07 11:18:12 +05:30
|
|
|
- note_count = @issuable_meta_data[issuable.id].user_notes_count
|
2017-08-17 22:00:37 +05:30
|
|
|
- issue_votes = @issuable_meta_data[issuable.id]
|
2021-04-29 21:17:54 +05:30
|
|
|
- upvotes = issue_votes.upvotes
|
|
|
|
- downvotes = issue_votes.downvotes
|
2019-10-12 21:52:04 +05:30
|
|
|
- issuable_path = issuable_path(issuable, anchor: 'notes')
|
2020-07-28 23:09:34 +05:30
|
|
|
- issuable_mr = @issuable_meta_data[issuable.id].merge_requests_count
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
- if issuable_mr > 0
|
2021-03-11 19:13:27 +05:30
|
|
|
%li.issuable-mr.gl-display-none.gl-sm-display-block.has-tooltip{ title: _('Related merge requests') }
|
2021-01-29 00:20:46 +05:30
|
|
|
= sprite_icon('merge-request', css_class: "gl-vertical-align-middle")
|
2017-08-17 22:00:37 +05:30
|
|
|
= issuable_mr
|
|
|
|
|
|
|
|
- if upvotes > 0
|
2021-03-11 19:13:27 +05:30
|
|
|
%li.issuable-upvotes.gl-display-none.gl-sm-display-block.has-tooltip{ title: _('Upvotes') }
|
2021-01-03 14:25:43 +05:30
|
|
|
= sprite_icon('thumb-up', css_class: "gl-vertical-align-middle")
|
2017-08-17 22:00:37 +05:30
|
|
|
= upvotes
|
|
|
|
|
|
|
|
- if downvotes > 0
|
2021-03-11 19:13:27 +05:30
|
|
|
%li.issuable-downvotes.gl-display-none.gl-sm-display-block.has-tooltip{ title: _('Downvotes') }
|
2021-01-03 14:25:43 +05:30
|
|
|
= sprite_icon('thumb-down', css_class: "gl-vertical-align-middle")
|
2017-08-17 22:00:37 +05:30
|
|
|
= downvotes
|
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
= render_if_exists 'shared/issuable/blocking_issues_count', issuable: issuable
|
|
|
|
|
2021-03-11 19:13:27 +05:30
|
|
|
%li.issuable-comments.gl-display-none.gl-sm-display-block
|
2020-10-24 23:57:45 +05:30
|
|
|
= link_to issuable_path, class: ['has-tooltip', ('no-comments' if note_count == 0)], title: _('Comments') do
|
|
|
|
= sprite_icon('comments', css_class: 'gl-vertical-align-text-bottom')
|
2017-08-17 22:00:37 +05:30
|
|
|
= note_count
|