Sha256: ed0dce993867324e51ed9c5e214657d49dcd154ca9c43fe505e0a12f05de7dd3

Contents?: true

Size: 1.03 KB

Versions: 8

Compression:

Stored size: 1.03 KB

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

        %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_icon :trash, content_entry_url(content_type.slug, entry), title: t('locomotive.buttons.delete'), class: 'remove', data: { confirm: t('locomotive.messages.confirm') }, method: :delete

  - if entries.respond_to?(:current_page)
    = paginate entries, namespace: 'locomotive'

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
locomotive_cms-2.2.2 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.2.1 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.2.0 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.1.4 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.1.3 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.1.2 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.1.1 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.1.0 app/views/locomotive/content_entries/_list.html.haml