2017-05-04 08:11:15 -04:00
|
|
|
- max_render = 3
|
|
|
|
- max = [max_render, issue.assignees.length].min
|
|
|
|
|
2017-05-08 10:58:42 -04:00
|
|
|
- issue.assignees.take(max).each do |assignee|
|
|
|
|
= link_to_member(@project, assignee, name: false, title: "Assigned to :name")
|
2017-05-04 08:11:15 -04:00
|
|
|
|
|
|
|
- if issue.assignees.length > max_render
|
|
|
|
- counter = issue.assignees.length - max_render
|
|
|
|
|
|
|
|
%span{ class: 'avatar-counter has-tooltip', data: { container: 'body', placement: 'bottom', 'line-type' => 'old', 'original-title' => "+#{counter} more assignees" } }
|
|
|
|
- if counter < 99
|
|
|
|
= "+#{counter}"
|
|
|
|
- else
|
|
|
|
99+
|