Sha256: 2a572947a8ac7811486e896d8a86e21a892ffe89bdc3802b5504179d2b5db94d

Contents?: true

Size: 421 Bytes

Versions: 9

Compression:

Stored size: 421 Bytes

Contents

<% if @model.has_route?(:destroy) && can?(:destroy, @model) %>
  <%=
    link_to(
      content_tag(
        :i,
        nil,
        class: 'fa fa-trash-o'
      ),
      [resource],
      title: I18n.t('action.delete', resource: resource.name),
      id: 'resource-delete',
      method: :delete,
      data: {
        confirm: I18n.t('action.delete_confirmation', resource: resource.name)
      }
    )
  %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
adminpanel-2.6.1 app/views/adminpanel/icons/_delete.html.erb
adminpanel-2.6.0 app/views/adminpanel/icons/_delete.html.erb
adminpanel-2.5.5 app/views/adminpanel/icons/_delete.html.erb
adminpanel-2.5.4 app/views/adminpanel/icons/_delete.html.erb
adminpanel-2.5.3 app/views/adminpanel/icons/_delete.html.erb
adminpanel-2.5.2 app/views/adminpanel/icons/_delete.html.erb
adminpanel-2.5.1 app/views/adminpanel/icons/_delete.html.erb
adminpanel-2.5.0 app/views/adminpanel/icons/_delete.html.erb
adminpanel-2.4.3 app/views/adminpanel/icons/_delete.html.erb