include GravatarHelper::PublicMethods
include Redmine::Pagination::Helper
include Redmine::SudoMode::Helper
+ include Redmine::Themes::Helper
include Redmine::Hook::Helper
extend Forwardable
end
end
+ module Helper
+ def current_theme
+ unless instance_variable_defined?(:@current_theme)
+ @current_theme = Redmine::Themes.theme(Setting.ui_theme)
+ end
+ @current_theme
+ end
+
+ # Returns the header tags for the current theme
+ def heads_for_theme
+ if current_theme && current_theme.javascripts.include?('theme')
+ javascript_include_tag current_theme.javascript_path('theme')
+ end
+ end
+ end
+
private
def self.scan_themes
end
end
end
-
-module ApplicationHelper
- def current_theme
- unless instance_variable_defined?(:@current_theme)
- @current_theme = Redmine::Themes.theme(Setting.ui_theme)
- end
- @current_theme
- end
-
- # Returns the header tags for the current theme
- def heads_for_theme
- if current_theme && current_theme.javascripts.include?('theme')
- javascript_include_tag current_theme.javascript_path('theme')
- end
- end
-end