There were places where we had two links pointing to the same place; one link would be the name/title of a record, and one link would be under the "actions" column. This is confusing, since users would probably expect these links to point to different places (which is what happens in other tables in the admin section) and might try to click one of them and then the other one and be surprised when they found out both of them go to the same page.
21 lines
564 B
Plaintext
21 lines
564 B
Plaintext
<tr id="<%= dom_id(poll) %>" class="poll">
|
|
<td>
|
|
<strong><%= poll.name %></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>
|