Sha256: 597408bc2c7b46dc8382af74e7225288790a5c0a46bab838fd9a407234316b97

Contents?: true

Size: 558 Bytes

Versions: 17

Compression:

Stored size: 558 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,
      remote: true,
      data: {
        toggle: :tooltip,
        placement: :left,
        title: I18n.t('action.delete', resource: resource.name),
        confirm: I18n.t('action.delete_confirmation', resource: resource.name)
      }
    )
  %>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
adminpanel-3.6.1 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.6.0 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.5.1 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.5.0 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.4.7 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.4.6 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.4.5 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.4.4 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.4.3 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.4.2 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.4.1 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.4.0 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.3.4 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.3.3 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.3.0 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.2.1 app/views/adminpanel/icons/_delete.html.erb
adminpanel-3.2.0 app/views/adminpanel/icons/_delete.html.erb