Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_assignees.html.haml « issuable « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8e46db6dea2ef9a058f5c1f27f20f6e4b67f189a (plain)
1
2
3
4
5
6
7
8
9
10
- max_render = 4
- assignees_rendering_overflow = issuable.assignees.size > max_render
- render_count = assignees_rendering_overflow ? max_render - 1 : max_render
- more_assignees_count = issuable.assignees.size - render_count

- issuable.assignees.take(render_count).each do |assignee| # rubocop: disable CodeReuse/ActiveRecord
  = link_to_member(@project, assignee, name: false, title: "Assigned to :name")

- if more_assignees_count > 0
  %span{ class: 'avatar-counter has-tooltip', data: { container: 'body', placement: 'bottom', 'line-type' => 'old', 'original-title' => "+#{more_assignees_count} more assignees", qa_selector: 'avatar_counter_content' } } +#{more_assignees_count}