<% count = proposal.endorsements.count if count > 0 %>

<%= t('.title') %>

<%= proposal.endorsements.for_listing.limit(5).collect do |endorsement| %> <% render partial: 'endorsement_xxs', locals: {endorsement: endorsement} %> <% end.join(', ').html_safe %> <% if count > 5 %>...<% end -%>
<% if count > 5 %>
<%= t('.see_all') %>
<%= proposal.endorsements.for_listing.offset(5).collect do |endorsement| %> <% render partial: 'endorsement_xxs', locals: {endorsement: endorsement} %> <% end.join(', ').html_safe %>
<% end -%> <% end %>