Mercurial > hg > soundsoftware-site
comparison lib/redmine/themes.rb @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | e248c7af89ec |
children |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
73 | 73 |
74 def javascripts | 74 def javascripts |
75 @javascripts ||= assets("javascripts", "js") | 75 @javascripts ||= assets("javascripts", "js") |
76 end | 76 end |
77 | 77 |
78 def favicons | |
79 @favicons ||= assets("favicon") | |
80 end | |
81 | |
82 def favicon | |
83 favicons.first | |
84 end | |
85 | |
86 def favicon? | |
87 favicon.present? | |
88 end | |
89 | |
78 def stylesheet_path(source) | 90 def stylesheet_path(source) |
79 "/themes/#{dir}/stylesheets/#{source}" | 91 "/themes/#{dir}/stylesheets/#{source}" |
80 end | 92 end |
81 | 93 |
82 def image_path(source) | 94 def image_path(source) |
83 "/themes/#{dir}/images/#{source}" | 95 "/themes/#{dir}/images/#{source}" |
84 end | 96 end |
85 | 97 |
86 def javascript_path(source) | 98 def javascript_path(source) |
87 "/themes/#{dir}/javascripts/#{source}" | 99 "/themes/#{dir}/javascripts/#{source}" |
100 end | |
101 | |
102 def favicon_path | |
103 "/themes/#{dir}/favicon/#{favicon}" | |
88 end | 104 end |
89 | 105 |
90 private | 106 private |
91 | 107 |
92 def assets(dir, ext=nil) | 108 def assets(dir, ext=nil) |