<% count = 0 %> <% Speech.where(section: "testimonios").shuffle.each do |testimonio| %> <% if testimonio.img.present? && count < 3 %>
<%= image_tag "#{(isMobile ? testimonio.img.thumb.url : testimonio.img.large.url)}", alt: testimonio.title %>
<% count += 1 %> <% end %> <% end %>