<%= @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 %> <%= opt.option %>
<% end %> <% if opt.votes > 0 %> <%= content_tag :div, "", { class: "bar", style: "width: #{opt.votes*100/@poll.votes}%;" } %> <% end %> <%= opt.votes %>

<% end %>
<%= link_to "Archive", polls_path, class: "button" %>