2021-05-16 18:03:16 +08:00
|
|
|
<% project.user_assignments[0..3].each do |user_assigment| %>
|
2021-01-11 23:13:40 +08:00
|
|
|
<span class="global-avatar-container">
|
2021-05-16 18:03:16 +08:00
|
|
|
<%= image_tag(avatar_path(user_assigment.user, :icon_small), title: user_name_with_role(user_assigment)) %>
|
2021-01-11 23:13:40 +08:00
|
|
|
</span>
|
|
|
|
<% end %>
|
|
|
|
|
2021-05-16 18:03:16 +08:00
|
|
|
<% more_users = project.user_assignments[4..-1].to_a %>
|
2021-01-11 23:13:40 +08:00
|
|
|
<% if more_users.any? %>
|
2023-03-14 01:00:30 +08:00
|
|
|
<span class="more-users" title='<%= user_names_with_roles(more_users) %>'>
|
2021-01-11 23:13:40 +08:00
|
|
|
+<%= more_users.size %>
|
2021-03-02 22:32:53 +08:00
|
|
|
</span>
|
2021-01-11 23:13:40 +08:00
|
|
|
<% end %>
|