Sha256: dfe7d02537f1634d5be5ea72ab8b1a07b44f39a1314788567cabb958e5cb8223
Contents?: true
Size: 887 Bytes
Versions: 10
Compression:
Stored size: 887 Bytes
Contents
class EffectivePagesDatatable < Effective::Datatable filters do scope :published scope :draft scope :on_menu scope :all 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 col :menu_name, visible: false col :menu_url, visible: false col :menu_parent, visible: false col :menu_position, visible: false 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
10 entries across 10 versions & 1 rubygems