Skip to content

Commit

Permalink
Custom themes are now loaded from "/themes" directory from project ro…
Browse files Browse the repository at this point in the history
…ot. 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
  • Loading branch information
marius-balteanu committed Feb 13, 2024
1 parent 17a0ec4 commit 9155b77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/redmine/themes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def heads_for_theme
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
Expand Down
File renamed without changes.

0 comments on commit 9155b77

Please sign in to comment.