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