<%= "%+d" % (comment.upvotes.size - comment.downvotes.size) %>
<% else %>+<%= comment.upvotes.size %>/-<%= comment.downvotes.size %>
<% end %> <% if can_vote && (vote.blank? || vote.vote_flag) %> <%= form_tag commontator.downvote_comment_path(comment), :method => :put, :remote => true do %> <%= image_submit_tag "commontator/downvote.png", :onmouseover => "this.src='/assets/commontator/downvote_hover.png'", :onmouseout => "this.src='/assets/commontator/downvote.png'" %> <% end %> <% elsif can_vote %> <%= form_tag commontator.unvote_comment_path(comment), :method => :put, :remote => true do %> <%= image_submit_tag "commontator/downvote_hover.png", :onmouseover => "this.src='/assets/commontator/downvote.png'", :onmouseout => "this.src='/assets/commontator/downvote_hover.png'" %> <% end %> <% else %> <%= image_tag "commontator/downvote_hover.png" %> <% end %> <% end %>