Sha256: feac672fa28552e9e0008bd21b4049ce6c037714c63817b011d5075828bd1aca

Contents?: true

Size: 992 Bytes

Versions: 32

Compression:

Stored size: 992 Bytes

Contents

class EffectivePagesDatatable < Effective::Datatable

  filters do
    scope :all
    scope :published
    scope :draft
    scope :on_menu
  end

  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

    col :menu_name
    col :menu_title
    col :menu_group

    col :menu_url, visible: false
    col :menu_parent, search: { collection: admin_menu_parent_collection(), grouped: true }
    col :menu_position, visible: false

    col :page_banner, search: :string

    col :authenticate_user, visible: false
    col :roles, visible: false

    actions_col do |page|
      dropdown_link_to('View', effective_pages.page_path(page), target: '_blank')
    end
  end

  collection do
    Effective::Page.deep.all
  end

end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
effective_pages-3.11.0 app/datatables/effective_pages_datatable.rb
effective_pages-3.10.3 app/datatables/effective_pages_datatable.rb
effective_pages-3.10.2 app/datatables/effective_pages_datatable.rb
effective_pages-3.10.1 app/datatables/effective_pages_datatable.rb
effective_pages-3.10.0 app/datatables/effective_pages_datatable.rb
effective_pages-3.9.0 app/datatables/effective_pages_datatable.rb
effective_pages-3.8.4 app/datatables/effective_pages_datatable.rb
effective_pages-3.8.3 app/datatables/effective_pages_datatable.rb
effective_pages-3.8.2 app/datatables/effective_pages_datatable.rb
effective_pages-3.8.1 app/datatables/effective_pages_datatable.rb
effective_pages-3.8.0 app/datatables/effective_pages_datatable.rb
effective_pages-3.7.11 app/datatables/effective_pages_datatable.rb
effective_pages-3.7.10 app/datatables/effective_pages_datatable.rb
effective_pages-3.7.9 app/datatables/effective_pages_datatable.rb
effective_pages-3.7.8 app/datatables/effective_pages_datatable.rb
effective_pages-3.7.7 app/datatables/effective_pages_datatable.rb
effective_pages-3.7.6 app/datatables/effective_pages_datatable.rb
effective_pages-3.7.5 app/datatables/effective_pages_datatable.rb
effective_pages-3.7.4 app/datatables/effective_pages_datatable.rb
effective_pages-3.7.3 app/datatables/effective_pages_datatable.rb