2023-03-07 18:02:03 +08:00
|
|
|
<% protocol.user_assignments[0..2].each_with_index do |user_assigment, i| %>
|
2023-01-31 17:34:32 +08:00
|
|
|
<span class="global-avatar-container" style="z-index: <%= 5 - i %>">
|
2022-12-09 19:44:41 +08:00
|
|
|
<%= image_tag(avatar_path(user_assigment.user, :icon_small), title: user_name_with_role(user_assigment)) %>
|
|
|
|
</span>
|
|
|
|
<% end %>
|
|
|
|
|
2023-03-07 18:02:03 +08:00
|
|
|
<% more_users = protocol.user_assignments[3..-1].to_a %>
|
2022-12-09 19:44:41 +08:00
|
|
|
<% if more_users.any? %>
|
2023-03-10 16:46:45 +08:00
|
|
|
<span class="more-users" title="<%= user_names_with_roles(more_users) %>">
|
2022-12-09 19:44:41 +08:00
|
|
|
+<%= more_users.size %>
|
|
|
|
</span>
|
|
|
|
<% end %>
|