% if existing_action?(collection_presenter.resource_name, :edit) %>
<%= link_to(
t("administrate.actions.edit"),
[:edit, namespace, resource],
class: "action-edit",
) if accessible_action?(resource, :edit) %> |
<% end %>
<% if existing_action?(collection_presenter.resource_name, :destroy) %>
<%= link_to(
t("administrate.actions.destroy"),
[namespace, resource],
class: "text-color-red",
method: :delete,
data: { confirm: t("administrate.actions.confirm") }
) if accessible_action?(resource, :destroy) %> |
<% end %>