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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
821 B
Text
Raw Normal View History

2018-03-17 18:26:18 +05:30
- max_render = 4
2019-07-31 22:56:46 +05:30
- assignees_rendering_overflow = issuable.assignees.size > max_render
2018-03-17 18:26:18 +05:30
- render_count = assignees_rendering_overflow ? max_render - 1 : max_render
2019-07-31 22:56:46 +05:30
- more_assignees_count = issuable.assignees.size - render_count
2017-08-17 22:00:37 +05:30
2022-08-27 11:52:29 +05:30
- issuable.assignees.take(render_count).each do |assignee| # rubocop: disable CodeReuse/ActiveRecord
= link_to_member(@project, assignee, name: false, title: s_("MrList|Assigned to %{name}") % { name: assignee.name})
2017-08-17 22:00:37 +05:30
2020-10-24 23:57:45 +05:30
- if more_assignees_count > 0
2021-01-03 14:25:43 +05:30
%span{ class: 'avatar-counter has-tooltip', data: { container: 'body', placement: 'bottom', 'line-type' => 'old', qa_selector: 'avatar_counter_content' }, title: _("+%{more_assignees_count} more assignees") % { more_assignees_count: more_assignees_count} }
= _("+%{more_assignees_count}") % { more_assignees_count: more_assignees_count}