mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 04:06:53 +08:00
12 lines
489 B
Text
12 lines
489 B
Text
<% protocol.user_assignments[0..2].each_with_index do |user_assigment, i| %>
|
|
<span class="global-avatar-container" style="z-index: <%= 5 - i %>">
|
|
<%= image_tag(avatar_path(user_assigment.user, :icon_small), title: user_name_with_role(user_assigment)) %>
|
|
</span>
|
|
<% end %>
|
|
|
|
<% more_users = protocol.user_assignments[3..-1].to_a %>
|
|
<% if more_users.any? %>
|
|
<span class="more-users" title="<%= user_names_with_roles(more_users) %>">
|
|
+<%= more_users.size %>
|
|
</span>
|
|
<% end %>
|