Sha256: 74954e9baa35bcfe38392ea40b2cef1b32a0215f74f2e786bb467e8b1fd22a2e

Contents?: true

Size: 366 Bytes

Versions: 6

Compression:

Stored size: 366 Bytes

Contents

<%
if can? :destroy, @model
    delete_uri = admin_delete_uri(item)
    unless delete_uri.nil?
        %><div class="glyphicon glyphicon-remove fl-l"><%
            concat button_to t('rademade_admin.destroy'), delete_uri, {
                :method => :delete,
                :form => { :class => 'delete-item-form' }
            }
        %></div><%
    end
end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rademade_admin-0.2.2 app/views/rademade_admin/_blocks/button/_destroy.html.erb
rademade_admin-0.2.1 app/views/rademade_admin/_blocks/button/_destroy.html.erb
rademade_admin-0.2.0 app/views/rademade_admin/_blocks/button/_destroy.html.erb
rademade_admin-0.1.6 app/views/rademade_admin/_blocks/button/_destroy.html.erb
rademade_admin-0.1.5 app/views/rademade_admin/_blocks/button/_destroy.html.erb
rademade_admin-0.1.4 app/views/rademade_admin/_blocks/button/_destroy.html.erb