14 lines
455 B
Plaintext
14 lines
455 B
Plaintext
<% if actions.include?(:edit) %>
|
|
<%= link_to t("admin.actions.edit"),
|
|
admin_polymorphic_path(record, action: :edit),
|
|
class: "button hollow" %>
|
|
<% end %>
|
|
|
|
<% if actions.include?(:destroy) %>
|
|
<%= link_to t("admin.actions.delete"),
|
|
admin_polymorphic_path(record),
|
|
method: :delete,
|
|
class: "button hollow alert",
|
|
data: { confirm: t("admin.actions.confirm") } %>
|
|
<% end %>
|