2010-06-16 14:43:29 +00:00
|
|
|
- if contents.empty?
|
2011-12-22 23:45:32 +00:00
|
|
|
%p.no-items!= t('.no_items', :url => new_content_entry_url(@content_type.slug))
|
2010-06-16 14:43:29 +00:00
|
|
|
- else
|
2011-06-26 00:01:11 +00:00
|
|
|
%ul{ :id => 'contents-list', :class => "list #{'sortable' if @content_type.order_by == '_position_in_list'}", :'data-url' => sort_admin_contents_path(@content_type.slug, :json) }
|
2010-06-16 14:43:29 +00:00
|
|
|
- contents.each do |content|
|
|
|
|
%li.content{ :id => "content-#{content._id}" }
|
|
|
|
%em
|
|
|
|
%strong
|
2011-06-01 21:43:12 +00:00
|
|
|
= link_to content_label_for(content), edit_admin_content_path(@content_type.slug, content)
|
2010-06-16 14:43:29 +00:00
|
|
|
.more
|
|
|
|
%span
|
2011-10-30 23:02:41 +00:00
|
|
|
!= t('locomotive.contents.index.updated_at')
|
2010-06-16 14:43:29 +00:00
|
|
|
= l content.updated_at, :format => :short rescue 'n/a'
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2011-10-30 23:02:41 +00:00
|
|
|
= link_to image_tag('admin/list/icons/trash.png', :alt => t('locomotive.buttons.delete')), admin_content_path(@content_type.slug, content), :class => 'remove', :confirm => t('locomotive.messages.confirm'), :method => :delete
|