We're choosing the default `with_first_argument` style because it's the one we use the most.
18 lines
621 B
Plaintext
18 lines
621 B
Plaintext
<tr id="<%= dom_id(poll) %>" class="poll">
|
|
<td><strong><%= poll.name %></strong></td>
|
|
<td class="text-center"><%= l poll.starts_at, format: :short_datetime %></td>
|
|
<td class="text-center"><%= l poll.ends_at, format: :short_datetime %></td>
|
|
<% if feature?(:sdg) %>
|
|
<td class="text-center"><%= poll.sdg_goal_list %></td>
|
|
<td class="text-center"><%= poll.sdg_target_list %></td>
|
|
<% end %>
|
|
<td>
|
|
<%= render Admin::TableActionsComponent.new(
|
|
poll,
|
|
destroy_confirmation: t("admin.polls.destroy.alert")
|
|
) do |actions| %>
|
|
<%= actions.action(:configure) %>
|
|
<% end %>
|
|
</td>
|
|
</tr>
|