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