Patch #20300 » themes_helper.patch
| lib/redmine/themes.rb | ||
|---|---|---|
|
end
|
||
|
end
|
||
|
module ApplicationHelper
|
||
|
module ThemesHelper
|
||
|
def current_theme
|
||
|
unless instance_variable_defined?(:@current_theme)
|
||
|
@current_theme = Redmine::Themes.theme(Setting.ui_theme)
|
||
| ... | ... | |
|
end
|
||
|
end
|
||
|
end
|
||
|
ActionView::Base.send(:include, ThemesHelper)
|
||