Sha256: f9f0e5e6635be6f2a15a9df64a069d2b381ef1a4f0773dd771f6ee8fea83e5ff

Contents?: true

Size: 1.68 KB

Versions: 2

Compression:

Stored size: 1.68 KB

Contents

- collection_title
= collection_header button_new: false

- 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= resource_class.human_attribute_name(:item)
            th= resource_class.human_attribute_name(:item_type)
            th= resource_class.human_attribute_name(:event)
            th= resource_class.human_attribute_name(:whodunnit)
            th= resource_class.human_attribute_name(:created_at)
            th
            th
        tbody
          - collection.each do |object|
            tr
              td= version_item object if object.item
              td= object.item_type.constantize.model_name.human if object.item_type
              td= version_event object
              td= object.whodunnit unless version_login?(object)
              td= l object.created_at, format: :admin
              td.table-list__controls
                = link_to t('labels.admin.show'), admin_version_path(object), class: 'icon icon--diff -edit', title: t('labels.admin.show')
              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

  p
  = link_to t('admin.paper_trail/versions.labels.actions.save_table'),
        admin_versions_path(format: :xlsx),
        target: '_blank',
        class: 'btn btn-primary btn-small'

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
adminos-1.0.0.pre.rc.5 lib/generators/templates/install/admin_panel/versions/views/admin_versions/index.slim
adminos-1.0.0.pre.rc.4 lib/generators/templates/install/admin_panel/versions/views/admin_versions/index.slim