Sha256: fffdaf0b595d5a2b727673cc755aa734248a3ce1bfd5683f658221e92728ab96

Contents?: true

Size: 505 Bytes

Versions: 11

Compression:

Stored size: 505 Bytes

Contents

class EffectivePagesDatatable < Effective::Datatable

  datatable do
    order :title, :asc
    length :all

    col :id, visible: false
    col :updated_at, visible: false

    col :title

    col :slug do |page|
      link_to(page.slug, effective_pages.page_path(page), target: '_blank')
    end

    col :draft

    col :layout, visible: false
    col :tempate, visible: false

    actions_col partial: 'admin/pages/actions', partial_as: :page
  end

  collection do
    Effective::Page.all
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
effective_pages-2.1.0 app/datatables/effective_pages_datatable.rb
effective_pages-2.0.9 app/datatables/effective_pages_datatable.rb
effective_pages-2.0.8 app/datatables/effective_pages_datatable.rb
effective_pages-2.0.7 app/datatables/effective_pages_datatable.rb
effective_pages-2.0.6 app/datatables/effective_pages_datatable.rb
effective_pages-2.0.5 app/datatables/effective_pages_datatable.rb
effective_pages-2.0.4 app/datatables/effective_pages_datatable.rb
effective_pages-2.0.3 app/datatables/effective_pages_datatable.rb
effective_pages-2.0.2 app/datatables/effective_pages_datatable.rb
effective_pages-2.0.1 app/datatables/effective_pages_datatable.rb
effective_pages-2.0.0 app/datatables/effective_pages_datatable.rb