Sha256: 5a781a14da59b30548d8d9f7ccbf5859ab91c5a6fa2150e25c72d790630f947f

Contents?: true

Size: 955 Bytes

Versions: 5

Compression:

Stored size: 955 Bytes

Contents

- collection_title
= collection_header

- if collection.present?
  - pagination = capture do
    - if collection.respond_to?(:current_page)
      = paginate collection, theme: :admin

  - list = capture do
    = pagination
    .table-list
      table.table.table-hover.table-sm
        thead
          tr
            th= admin_sortable_column :name, resource_class.human_attribute_name(:name)
            th
            th
        tbody
          - collection.each do |object|
            tr
              td= link_to object.name, polymorphic_path([:admin, object], action: :edit)
              td.table-list__controls= object_link_edit(object)
              td.table-list__check= admin_cb(object)
    = pagination

  - if controller.respond_to?(:batch_action)
    = batch_actions_tag publication: (collection.respond_to?(:set_each_published_on)),
      nav_publication: (collection.respond_to?(:set_nav_published_on)) do
      = list
  - else
    = list

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adminos-1.0.0.pre.rc.5 lib/generators/templates/adminos/types/table/views/index.slim
adminos-1.0.0.pre.rc.4 lib/generators/templates/adminos/types/table/views/index.slim
adminos-1.0.0.pre.rc.3 lib/generators/templates/adminos/types/table/views/index.slim
adminos-1.0.0.pre.rc.2 lib/generators/templates/adminos/types/table/views/index.slim
adminos-1.0.0.pre.rc.1 lib/generators/templates/adminos/types/table/views/index.slim