Add ability to reorder server rules from admin interface (#34737)
This commit is contained in:
parent
8ed0408adb
commit
d7cb6068b1
12 changed files with 97 additions and 2 deletions
|
@ -790,6 +790,8 @@ en:
|
|||
description_html: While most claim to have read and agree to the terms of service, usually people do not read through until after a problem arises. <strong>Make it easier to see your server's rules at a glance by providing them in a flat bullet point list.</strong> Try to keep individual rules short and simple, but try not to split them up into many separate items either.
|
||||
edit: Edit rule
|
||||
empty: No server rules have been defined yet.
|
||||
move_down: Move down
|
||||
move_up: Move up
|
||||
title: Server rules
|
||||
settings:
|
||||
about:
|
||||
|
|
|
@ -93,7 +93,12 @@ namespace :admin do
|
|||
end
|
||||
end
|
||||
|
||||
resources :rules, only: [:index, :new, :create, :edit, :update, :destroy]
|
||||
resources :rules, only: [:index, :new, :create, :edit, :update, :destroy] do
|
||||
member do
|
||||
post :move_up
|
||||
post :move_down
|
||||
end
|
||||
end
|
||||
|
||||
resources :webhooks do
|
||||
member do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue