<% project.user_assignments[0..3].each do |user_assigment| %> <%= image_tag(avatar_path(user_assigment.user, :icon_small), title: user_name_with_role(user_assigment)) %> <% end %> <% more_users = project.user_assignments[4..-1].to_a %> <% if more_users.any? %> +<%= more_users.size %> <% end %>