15 lines
887 B
Plaintext
15 lines
887 B
Plaintext
- if contents.empty?
|
|
%p.no-items!= t('.no_items', :url => new_content_url(@content_type.slug))
|
|
- else
|
|
%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) }
|
|
- contents.each do |content|
|
|
%li.content{ :id => "content-#{content._id}" }
|
|
%em
|
|
%strong
|
|
= link_to content_label_for(content), edit_admin_content_path(@content_type.slug, content)
|
|
.more
|
|
%span
|
|
!= t('locomotive.contents.index.updated_at')
|
|
= l content.updated_at, :format => :short rescue 'n/a'
|
|
|
|
= 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 |