mirror of
https://github.com/discourse/discourse.git
synced 2025-06-02 04:08:41 +08:00
FEATURE: direct link to components for admin sidebar (#26644)
To add a components link to the sidebar refactoring was required to create unique URLs for themes and components. Before the query param was used. After changes, we have two URLs `/admin/customize/themes` and `/admin/customize/components`.
This commit is contained in:

committed by
GitHub

parent
56c4804440
commit
df373d90fe
@ -221,6 +221,7 @@ Discourse::Application.routes.draw do
|
||||
|
||||
get "customize" => "color_schemes#index", :constraints => AdminConstraint.new
|
||||
get "customize/themes" => "themes#index", :constraints => AdminConstraint.new
|
||||
get "customize/components" => "themes#index", :constraints => AdminConstraint.new
|
||||
get "customize/theme-components" => "themes#index", :constraints => AdminConstraint.new
|
||||
get "customize/colors" => "color_schemes#index", :constraints => AdminConstraint.new
|
||||
get "customize/colors/:id" => "color_schemes#index", :constraints => AdminConstraint.new
|
||||
@ -257,6 +258,7 @@ Discourse::Application.routes.draw do
|
||||
|
||||
get "themes/:id/:target/:field_name/edit" => "themes#index"
|
||||
get "themes/:id" => "themes#index"
|
||||
get "components/:id" => "themes#index"
|
||||
get "themes/:id/export" => "themes#export"
|
||||
get "themes/:id/schema/:setting_name" => "themes#schema"
|
||||
|
||||
|
Reference in New Issue
Block a user