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