Sha256: cfa02a089aebe4c7420d0b2ce2d3aa247acffc295dbda62226245d35707507a4

Contents?: true

Size: 986 Bytes

Versions: 6

Compression:

Stored size: 986 Bytes

Contents

- if entries.empty?
  %p.no-items!= t('.no_items', :url => new_content_entry_url(content_type.slug))
- else
  %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)

        - unless entry.translated?
          %span.untranslated= t('locomotive.shared.list.untranslated')
        .more
          %span
            != t('locomotive.content_entries.index.updated_at')
          = l entry.updated_at, :format => :short rescue 'n/a'

          = link_to 'x', content_entry_url(content_type.slug, entry), :class => 'remove', :confirm => t('locomotive.messages.confirm'), :method => :delete

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
locomotive_cms-2.0.0.rc8 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.0.0.rc7 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.0.0.rc6 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.0.0.rc5 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.0.0.rc4 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.0.0.rc2 app/views/locomotive/content_entries/_list.html.haml