<%= semantic_form_for :battle, :remote => true, :url => thisorthat_result_path do |form| %> <% @images.each do |image| %>
<%= semantic_fields_for "image[#{image.id}]", image do |f| %>
<%= 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| %>

<%= t('lentil.battle.win_pct') %>

<%= number_to_percentage(image.win_pct, :precision => 0) %>

<% if image.id == @prev_winner %>

<%= t 'lentil.battle.you_picked' %>

<% end %>
<% end -%>