Files
grecia/app/views/admin/poll/polls/_poll.html.erb
Alberto Garcia Cabeza 0ddf7a003c adds dates on polls index
2016-12-16 14:02:03 +01:00

15 lines
388 B
Plaintext

<tr id="<%= dom_id(poll) %>" class="poll">
<td>
<strong>
<%= link_to poll.name, admin_poll_path(poll) %>
</strong>
</td>
<td>
<%= l poll.starts_at.to_date %> - <%= l poll.ends_at.to_date %>
</td>
<td class="text-right">
<%= link_to t("admin.actions.edit"),
edit_admin_poll_path(poll),
class: "button hollow" %>
</td>
</tr>