debian-mirror-gitlab/app/views/shared/issuable/_assignees.html.haml

11 lines
602 B
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
- max_render = 4
- assignees_rendering_overflow = issue.assignees.size > max_render
- render_count = assignees_rendering_overflow ? max_render - 1 : max_render
- more_assignees_count = issue.assignees.size - render_count
2017-08-17 22:00:37 +05:30
2018-03-17 18:26:18 +05:30
- issue.assignees.take(render_count).each do |assignee|
2017-08-17 22:00:37 +05:30
= link_to_member(@project, assignee, name: false, title: "Assigned to :name")
2018-03-17 18:26:18 +05:30
- if more_assignees_count.positive?
%span{ class: 'avatar-counter has-tooltip', data: { container: 'body', placement: 'bottom', 'line-type' => 'old', 'original-title' => "+#{more_assignees_count} more assignees" } } +#{more_assignees_count}