]> source.dussan.org Git - redmine.git/commitdiff
Custom themes are now loaded from "/themes" directory from project root. The themes...
authorMarius Balteanu <marius.balteanu@zitec.com>
Tue, 13 Feb 2024 23:11:28 +0000 (23:11 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Tue, 13 Feb 2024 23:11:28 +0000 (23:11 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22708 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/assets/themes/README [deleted file]
lib/redmine/themes.rb
themes/README [new file with mode: 0644]

diff --git a/app/assets/themes/README b/app/assets/themes/README
deleted file mode 100644 (file)
index 1af3d19..0000000
+++ /dev/null
@@ -1 +0,0 @@
-Put your Redmine themes here.
index 57fcd80d7efe4b4469b7ef73595a7e1db8c4de92..873409d1eb25d723827d647f0589e1d50e6b71c6 100644 (file)
@@ -148,7 +148,7 @@ module Redmine
     end
 
     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
         File.directory?(f) && File.exist?("#{f}/stylesheets/application.css")
       end
diff --git a/themes/README b/themes/README
new file mode 100644 (file)
index 0000000..1af3d19
--- /dev/null
@@ -0,0 +1 @@
+Put your Redmine themes here.