Module: Redmine::Themes::Helper
- Included in:
- ApplicationHelper
- Defined in:
- lib/redmine/themes.rb
Overview
Instance Method Summary collapse
- #current_theme ⇒ Object
-
#heads_for_theme ⇒ Object
Returns the header tags for the current theme.
Instance Method Details
#current_theme ⇒ Object
118 119 120 121 122 123 |
# File 'lib/redmine/themes.rb', line 118 def current_theme unless instance_variable_defined?(:@current_theme) @current_theme = Redmine::Themes.theme(Setting.ui_theme) end @current_theme end |
#heads_for_theme ⇒ Object
Returns the header tags for the current theme
126 127 128 129 130 |
# File 'lib/redmine/themes.rb', line 126 def heads_for_theme if current_theme && current_theme.javascripts.include?('theme') javascript_include_tag current_theme.javascript_path('theme') end end |