Files
nairobi/app/views/admin/poll/polls/_poll.html.erb
Javi Martín fb23df2e5b Allow additional links in table actions component
This way we'll be able to make these links consistent.
2020-10-21 13:19:49 +02:00

23 lines
607 B
Plaintext

<tr id="<%= dom_id(poll) %>" class="poll">
<td>
<strong>
<%= link_to poll.name, admin_poll_path(poll) %>
</strong>
</td>
<td class="text-center">
<%= l poll.starts_at.to_date %>
</td>
<td class="text-center">
<%= l poll.ends_at.to_date %>
</td>
<td>
<%= render Admin::TableActionsComponent.new(poll,
destroy_confirmation: t("admin.polls.destroy.alert")
) do |actions| %>
<%= actions.link_to t("admin.actions.configure"),
admin_poll_path(poll),
class: "button hollow " %>
<% end %>
</td>
</tr>