mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
FEATURE: more than 1 site customization can be enabled at once
FIX: more robust site customizations Rewrote site customization to use distributed cache and a much cleaner css delivery mechanism
This commit is contained in:
9
app/controllers/site_customizations_controller.rb
Normal file
9
app/controllers/site_customizations_controller.rb
Normal file
@ -0,0 +1,9 @@
|
||||
class SiteCustomizationsController < ApplicationController
|
||||
skip_before_filter :check_xhr, :redirect_to_login_if_required
|
||||
|
||||
def show
|
||||
expires_in 1.year, public: true
|
||||
render text: SiteCustomization.stylesheet_contents(params[:key], params[:target] == "mobile" ? :mobile : :desktop),
|
||||
content_type: "text/css"
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user