Browse Source

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
pull/149/head
Marius Balteanu 2 months ago
parent
commit
9155b777e6
2 changed files with 1 additions and 1 deletions
  1. 1
    1
      lib/redmine/themes.rb
  2. 0
    0
      themes/README

+ 1
- 1
lib/redmine/themes.rb View 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

app/assets/themes/README → themes/README View File


Loading…
Cancel
Save