mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 13:51:09 +08:00
FIX: display custom sections with default theme
also cleans up mechanism for previewing themes, cleans up naming, gets rid of old janky "preview_style", secures local theme key
This commit is contained in:
@ -1,6 +1,12 @@
|
||||
class Admin::ThemesController < Admin::AdminController
|
||||
|
||||
skip_before_filter :check_xhr, only: [:show]
|
||||
skip_before_filter :check_xhr, only: [:show, :preview]
|
||||
|
||||
def preview
|
||||
@theme = Theme.find(params[:id])
|
||||
|
||||
redirect_to path("/"), flash: {preview_theme_key: @theme.key}
|
||||
end
|
||||
|
||||
def import
|
||||
|
||||
|
Reference in New Issue
Block a user