Sha256: c039143d18319fe695f9d7f76b426ef22515afe19ddbaec45f50af38ab10762b

Contents?: true

Size: 1.12 KB

Versions: 5

Compression:

Stored size: 1.12 KB

Contents

- if empty_collection?(entries)
  %p.no-items!= t('.no_items', url: new_content_entry_path(content_type.slug))
- else
  %ul{ id: 'entries-list', class: "#{content_type.groupable? ? 'grouped' : 'list'} #{'sortable' if content_type.order_manually?}", :'data-url' => sort_content_entries_path(content_type.slug, :json) }
    - entries.each do |entry|
      %li.item{ id: "entry-#{entry._id}" }
        %span.handle
          - if content_type.groupable?
            %i.icon-reorder

        %strong= link_to entry_label(content_type, entry), edit_content_entry_path(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_path(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

5 entries across 5 versions & 1 rubygems

Version Path
locomotive_cms-2.5.7 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.5.6 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.5.6.rc2 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.5.6.rc1 app/views/locomotive/content_entries/_list.html.haml
locomotive_cms-2.5.5 app/views/locomotive/content_entries/_list.html.haml