mirror of
https://github.com/discourse/discourse.git
synced 2025-02-22 20:45:51 +00:00
FIX: category backgrounds were broken
This commit is contained in:
parent
49b02287dc
commit
8a5a229c3f
@ -1,6 +1,6 @@
|
||||
{{render "header"}}
|
||||
|
||||
<div id='main-outlet' {{bind-attr class=backgroundClass}}>
|
||||
<div id='main-outlet'>
|
||||
{{outlet}}
|
||||
{{render "user-card"}}
|
||||
</div>
|
||||
|
@ -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.id} { background-image: url(#{c.background_url}) }\n"
|
||||
contents << "body.category-#{c.slug} { background-image: url(#{c.background_url}) }\n"
|
||||
end
|
||||
end
|
||||
return Sass::Engine.new(contents, options.merge(
|
||||
|
Loading…
x
Reference in New Issue
Block a user