<%= h @poll.question %>

<% @poll.options.all.each do |opt| %>

<% if cuser and !@poll.voted?(cuser) %> <%= link_to (h opt), :controller => "votes", :action => "create", :vote => {:votable_id => opt.id, :votable_type => "Option"} %> <% else %> <%= h opt.option %>
<% end %> <% if opt.votes > 0 %> <%= image_tag "/images/icons/poll.png", :class => "bar", :height => 6, :width => opt.votes*100/@poll.votes %> <% end %> <%= opt.votes %>

<% end %>

<%= link_to "Archive..", polls_path %>