2010-06-02 14:31:01 +00:00
|
|
|
- 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
|
|
|
|
2010-06-02 14:31:01 +00:00
|
|
|
%li{ :class => "#{asset.new_record? ? 'new-asset' : 'asset'} #{'last' if (asset_counter + 1) % per_row == 0}"}
|
2010-07-22 22:10:40 +00:00
|
|
|
%h4= link_to truncate(asset.slug, :length => 18), edit ? edit_admin_theme_asset_path(asset) : asset.source.url, :"data-slug" => asset.slug, :"data-shortcut-url" => asset.shortcut_url
|
2010-05-11 21:38:52 +00:00
|
|
|
.image
|
|
|
|
.inside
|
|
|
|
= vignette_tag(asset)
|
2010-06-02 14:31:01 +00:00
|
|
|
- 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
|