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: 36bbb1148d49b2c90d045d0eefd03a6a5cd1f93a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
- max_render = 3
- max = [max_render, issue.assignees.length].min

- issue.assignees.each_with_index do |assignee, index|
  - if index < max
    = link_to_member(@project, assignee, name: false, title: "Assigned to :name")

- 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+