* Add: #883 管理者の設定したカスタムCSSをユーザー単位で無効にするオプション * ラベル変更
This commit is contained in:
parent
b30086dc6b
commit
943db145e4
12 changed files with 56 additions and 14 deletions
16
app/controllers/system_css_controller.rb
Normal file
16
app/controllers/system_css_controller.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class SystemCssController < ActionController::Base # rubocop:disable Rails/ApplicationController
|
||||
before_action :set_user_roles
|
||||
|
||||
def show
|
||||
expires_in 3.minutes, public: true
|
||||
render content_type: 'text/css'
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def set_user_roles
|
||||
@user_roles = UserRole.providing_styles
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue