0
0
Fork 0

Add batch approve/reject for pending hashtags in admin UI (#11791)

This commit is contained in:
Eugen Rochko 2019-09-09 12:50:09 +02:00 committed by GitHub
parent 3feacd2b14
commit 261e52268c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 142 additions and 19 deletions

View file

@ -727,6 +727,7 @@ en:
all: All
changes_saved_msg: Changes successfully saved!
copy: Copy
no_batch_actions_available: No batch actions available on this page
order_by: Order by
save_changes: Save changes
validation_errors:

View file

@ -251,7 +251,14 @@ Rails.application.routes.draw do
end
resources :account_moderation_notes, only: [:create, :destroy]
resources :tags, only: [:index, :show, :update]
resources :tags, only: [:index, :show, :update] do
collection do
post :approve_all
post :reject_all
post :batch
end
end
end
get '/admin', to: redirect('/admin/dashboard', status: 302)