2017-12-16 10:01:02 -05:00
|
|
|
- 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-05-04 08:11:15 -04:00
|
|
|
|
2017-12-16 10:01:02 -05:00
|
|
|
- issue.assignees.take(render_count).each do |assignee|
|
2017-05-08 10:58:42 -04:00
|
|
|
= link_to_member(@project, assignee, name: false, title: "Assigned to :name")
|
2017-05-04 08:11:15 -04:00
|
|
|
|
2017-12-16 10:01:02 -05:00
|
|
|
- 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}
|