Add admin custom CSS setting (#8399)

Fix #3894
This commit is contained in:
Eugen Rochko
2018-08-24 04:33:27 +02:00
committed by GitHub
parent 23752639b2
commit a2cabf3f4a
8 changed files with 30 additions and 2 deletions

View File

@ -24,6 +24,7 @@ module Admin
peers_api_enabled
show_known_fediverse_at_about_page
preview_sensitive_media
custom_css
).freeze
BOOLEAN_SETTINGS = %w(

View File

@ -0,0 +1,10 @@
# frozen_string_literal: true
class CustomCssController < ApplicationController
before_action :set_cache_headers
def show
skip_session!
render plain: Setting.custom_css || '', content_type: 'text/css'
end
end