<%= link_to(sanitized_order_params(page, collection_field_name).merge( collection_presenter.order_params_for(attr_name, key: collection_field_name) )) do %> <%= t( "helpers.label.#{collection_presenter.resource_name}.#{attr_name}", default: attr_name.to_s, ).titleize %> <% if collection_presenter.ordered_by?(attr_name) %> <% end %> <% end %> | ||
---|---|---|
<% if authorized_action? resource, :show -%> <%= render_field attribute %> <% end -%> | <%= link_to( t("administrate.actions.edit"), [:edit, namespace, resource.becomes(User)], class: "action-edit", ) if authorized_action? resource, :edit%> | <%= link_to( t("administrate.actions.destroy"), [namespace, resource.becomes(User)], class: "text-color-red", method: :delete, data: { confirm: t("administrate.actions.confirm") } ) if authorized_action? resource, :destroy %> |