mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Custom themes are now loaded from "/themes" directory from project root. The themes provided by Redmine (alternate and classic) remains in "app/assets/themes" (#39111).
git-svn-id: https://svn.redmine.org/redmine/trunk@22708 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
17a0ec4c9a
commit
9155b777e6
@ -148,7 +148,7 @@ module Redmine
|
|||||||
end
|
end
|
||||||
|
|
||||||
def self.scan_themes
|
def self.scan_themes
|
||||||
dirs = Dir.glob("#{Rails.root}/app/assets/themes/*").select do |f|
|
dirs = Dir.glob(["#{Rails.root}/app/assets/themes/*", "#{Rails.root}/themes/*"]).select do |f|
|
||||||
# A theme should at least override application.css
|
# A theme should at least override application.css
|
||||||
File.directory?(f) && File.exist?("#{f}/stylesheets/application.css")
|
File.directory?(f) && File.exist?("#{f}/stylesheets/application.css")
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user