Implemenation for hiding the destroy asset button.

This commit is contained in:
Mario Visic 2011-08-20 17:13:06 +08:00
parent 0ed6c21f10
commit 24c9752018

View File

@ -9,5 +9,5 @@
%span!= t('.updated_at')
%span.date= l asset.updated_at, :format => :short
- if edit
- if edit && can?(:destroy, asset)
= link_to image_tag('admin/list/icons/trash.png'), admin_theme_asset_path(asset), :class => 'remove', :confirm => t('admin.messages.confirm'), :method => :delete