mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: sub-categories with the same name had the same background image
This commit is contained in:
@@ -50,7 +50,7 @@ class DiscourseSassImporter < Sass::Importers::Filesystem
|
||||
contents = ""
|
||||
Category.where('background_url IS NOT NULL').each do |c|
|
||||
if c.background_url.present?
|
||||
contents << "body.category-#{c.slug} { background-image: url(#{c.background_url}) }\n"
|
||||
contents << "body.category-#{c.full_slug} { background-image: url(#{c.background_url}) }\n"
|
||||
end
|
||||
end
|
||||
return Sass::Engine.new(contents, options.merge(
|
||||
|
||||
Reference in New Issue
Block a user