engine/app/views/admin/theme_assets/_asset.html.haml

12 lines
609 B
Plaintext
Raw Normal View History

- per_row = local_assigns[:per_row] || 6
- asset_counter = local_assigns[:asset_counter] || 0
- edit = local_assigns.key?(:edit) ? edit : true
2010-06-02 00:39:05 +00:00
%li{ :class => "#{asset.new_record? ? 'new-asset' : 'asset'} #{'last' if (asset_counter + 1) % per_row == 0}"}
%h4= link_to truncate(asset.slug, :length => 18), edit ? edit_admin_theme_asset_path(asset) : asset.source.url
2010-05-11 21:38:52 +00:00
.image
.inside
= vignette_tag(asset)
- if edit
2010-06-02 00:39:05 +00:00
.actions
= link_to image_tag('admin/list/icons/cross.png'), admin_theme_asset_path(asset), :class => 'remove', :confirm => t('admin.messages.confirm'), :method => :delete