mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
UX: redesign admin permalinks page (#29634)
Redesign the permalinks page to follow the UX guide. In addition, the ability to edit permalinks was added. This change includes: - move to RestModel - added Validations - update endpoint and clear old values after the update - system specs and improvements for unit tests
This commit is contained in:

committed by
GitHub

parent
b37f6f1edb
commit
42b1ca8f78
@ -300,13 +300,17 @@ Discourse::Application.routes.draw do
|
||||
|
||||
resource :email_style, only: %i[show update]
|
||||
get "email_style/:field" => "email_styles#show", :constraints => { field: /html|css/ }
|
||||
|
||||
resources :permalinks, only: %i[index new create show destroy]
|
||||
end
|
||||
|
||||
resources :embeddable_hosts, only: %i[create update destroy], constraints: AdminConstraint.new
|
||||
resources :color_schemes,
|
||||
only: %i[index create update destroy],
|
||||
constraints: AdminConstraint.new
|
||||
resources :permalinks, only: %i[index create destroy], constraints: AdminConstraint.new
|
||||
resources :permalinks,
|
||||
only: %i[index create show update destroy],
|
||||
constraints: AdminConstraint.new
|
||||
|
||||
scope "/customize" do
|
||||
resources :watched_words, only: %i[index create destroy] do
|
||||
|
Reference in New Issue
Block a user