<%= semantic_fields_for "image[#{image.id}]", image do |f| %>
<%= image_tag(image.jpeg, :class => "battle-img", :data => {:battles_count => image.battles_count, :win_pct => image.win_pct, :popularity => image.popular_score, :staff_like => image.staff_like, :like_votes_count => image.like_votes_count}) %>
<%= truncate(image.description, :length => 35) %>
<%= truncate(image.description, :length => 50) %>
<%= truncate(image.description, :length => 70) %>
<%= render "/layouts/lentil/image_popup", :image => image %>
<%= f.input :id, :as => :hidden %>
<%= f.action :submit, :as => :button, :label => t('lentil.battle.pick_me'), :button_html => {:value => "#{image.id}", :name => "vote", :class => "btn btn-large battle-form"} %>
<% end -%>
<% end -%>
<% end -%>
<% @prev_images.each do |image| %>