diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/themes.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/redmine/themes.rb b/lib/redmine/themes.rb index eb2ba9151..c69244f7e 100644 --- a/lib/redmine/themes.rb +++ b/lib/redmine/themes.rb @@ -75,6 +75,18 @@ module Redmine @javascripts ||= assets("javascripts", "js") end + def favicons + @favicons ||= assets("favicon") + end + + def favicon + favicons.first + end + + def favicon? + favicon.present? + end + def stylesheet_path(source) "/themes/#{dir}/stylesheets/#{source}" end @@ -87,6 +99,10 @@ module Redmine "/themes/#{dir}/javascripts/#{source}" end + def favicon_path + "/themes/#{dir}/favicon/#{favicon}" + end + private def assets(dir, ext=nil) |