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: e6d722cb08d0af7ab666a0643bffb99f49c4b0da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- 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

- if issuable.instance_of?(MergeRequest) && Feature.enabled?(:mr_attention_requests, default_enabled: :yaml)
  = render 'shared/issuable/merge_request_assignees', issuable: issuable, count: render_count
- else
  - 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}, go to their profile.") % { name: assignee.name})

- if more_assignees_count > 0
  %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}