about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2019-09-09 12:50:09 +0200
committerGitHub <noreply@github.com>2019-09-09 12:50:09 +0200
commit261e52268c05d2da4459a23e2898555dd5db5771 (patch)
tree51ff3e61b3de236a88953e660b3d57d39e78e976 /config
parent3feacd2b14aeb60999c9ee83422c6c8090ed3ac2 (diff)
Add batch approve/reject for pending hashtags in admin UI (#11791)
Diffstat (limited to 'config')
-rw-r--r--config/locales/en.yml1
-rw-r--r--config/routes.rb9
2 files changed, 9 insertions, 1 deletions
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 687f5f2a0..42d8e0eb8 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -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:
diff --git a/config/routes.rb b/config/routes.rb
index 1ebf9e066..534e68814 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -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)