Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dm 4693 add edit button to PB editor page #856

Merged
merged 1 commit into from
Apr 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions app/admin/editor/pages.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ActiveAdmin.register Page, as: 'Pages', namespace: :editor do
ActiveAdmin.register Page, namespace: :editor do
menu if: proc { current_user.has_role?(:admin) || current_user.has_role?(:page_group_editor, :any) }

permit_params :title,
Expand Down Expand Up @@ -73,13 +73,8 @@
]

config.filters = false
config.clear_action_items!
config.batch_actions = false

action_item :new, only: :index do
link_to 'New Page', new_editor_page_path
end

index download_links: false do
selectable_column
column(:title) { |page| link_to(page.title, admin_page_path(page)) }
Expand Down
Loading