2010-09-22 12:50:01 +00:00
|
|
|
/ - per_row = local_assigns[:per_row] || 6
|
|
|
|
/ - snippet_counter = local_assigns[:snippet_counter] || 0
|
|
|
|
/
|
|
|
|
/ %li{ :class => "asset #{'last' if (snippet_counter + 1) % per_row == 0}"}
|
|
|
|
/ %h4= link_to truncate(snippet.slug, :length => 18), edit_admin_snippet_path(snippet)
|
|
|
|
/ .image
|
|
|
|
/ .inside
|
|
|
|
/ / = vignette_tag(asset)
|
|
|
|
/ .actions
|
|
|
|
/ = link_to image_tag('admin/list/icons/cross.png'), admin_snippet_path(snippet), :class => 'remove', :confirm => t('admin.messages.confirm'), :method => :delete
|
|
|
|
|
2010-05-02 23:33:17 +00:00
|
|
|
%li
|
2010-09-22 12:50:01 +00:00
|
|
|
%em
|
2010-05-02 23:33:17 +00:00
|
|
|
%strong= link_to snippet.name, edit_admin_snippet_path(snippet)
|
|
|
|
.more
|
2010-07-21 23:56:42 +00:00
|
|
|
%span!= t('.updated_at')
|
2010-05-02 23:33:17 +00:00
|
|
|
= l snippet.updated_at, :format => :short
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2010-05-02 23:33:17 +00:00
|
|
|
= link_to image_tag('admin/list/icons/trash.png'), admin_snippet_path(snippet), :class => 'remove', :confirm => t('admin.messages.confirm'), :method => :delete
|