0
0
Fork 0

Change settings area to be separated into categories in admin UI (#19407)

And update all descriptions
This commit is contained in:
Eugen Rochko 2022-10-22 11:44:41 +02:00 committed by GitHub
parent abf6c87ee8
commit 7c152acb2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
29 changed files with 528 additions and 296 deletions

View file

@ -241,7 +241,18 @@ Rails.application.routes.draw do
end
end
resource :settings, only: [:edit, :update]
get '/settings', to: redirect('/admin/settings/branding')
get '/settings/edit', to: redirect('/admin/settings/branding')
namespace :settings do
resource :branding, only: [:show, :update], controller: 'branding'
resource :registrations, only: [:show, :update], controller: 'registrations'
resource :content_retention, only: [:show, :update], controller: 'content_retention'
resource :about, only: [:show, :update], controller: 'about'
resource :appearance, only: [:show, :update], controller: 'appearance'
resource :discovery, only: [:show, :update], controller: 'discovery'
end
resources :site_uploads, only: [:destroy]
resources :invites, only: [:index, :create, :destroy] do