Sha256: f0fdaf2ae47349addbe150128baa9d0968e4ce04b2e879ef5a5b937b866a8446

Contents?: true

Size: 555 Bytes

Versions: 2

Compression:

Stored size: 555 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 do |page|
      dropdown_link_to('View', effective_pages.page_path(page), target: '_blank')
    end
  end

  collection do
    Effective::Page.all
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
effective_pages-3.0.1 app/datatables/effective_pages_datatable.rb
effective_pages-3.0.0 app/datatables/effective_pages_datatable.rb