2012-01-04 01:07:53 +00:00
|
|
|
- if entries.empty?
|
|
|
|
%p.no-items!= t('.no_items', :url => new_content_entry_url(content_type.slug))
|
2010-06-16 14:43:29 +00:00
|
|
|
- else
|
2012-01-04 01:07:53 +00:00
|
|
|
%ul{ :id => 'entries-list', :class => "#{'list' unless content_type.groupable?} #{'sortable' if content_type.order_manually?}", :'data-url' => sort_content_entries_url(content_type.slug, :json) }
|
|
|
|
- entries.each do |entry|
|
|
|
|
%li.item{ :id => "entry-#{entry._id}" }
|
|
|
|
%span.handle
|
|
|
|
= image_tag 'locomotive/form/icons/drag.png'
|
|
|
|
%strong= link_to entry_label(content_type, entry), edit_content_entry_url(content_type.slug, entry)
|
2010-06-16 14:43:29 +00:00
|
|
|
.more
|
|
|
|
%span
|
2012-01-04 01:07:53 +00:00
|
|
|
!= t('locomotive.content_entries.index.updated_at')
|
|
|
|
= l entry.updated_at, :format => :short rescue 'n/a'
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2012-01-04 01:07:53 +00:00
|
|
|
= link_to 'x', content_entry_url(content_type.slug, entry), :class => 'remove', :confirm => t('locomotive.messages.confirm'), :method => :delete
|