Listing polls

<% if cuser and cuser.admin? %> <% end %> <% @polls.reverse_each do |poll| %> <% if cuser and cuser.admin? %> <% end %> <% end %>
Question End date Votes UserOptions
<%= link_to (h poll.question), poll %> <%= longtime poll.end_date %> <%= h poll.votes %> <%= h poll.user %> <%= link_to 'Edit', edit_poll_path(poll) %> <%= link_to 'Destroy', poll, :confirm => 'Are you sure?', :method => :delete %>

<% if cuser and cuser.admin? %> <%= link_to 'New poll', new_poll_path %> <% end %>