FIX: category backgrounds were broken

This commit is contained in:
Régis Hanol 2015-02-04 16:38:42 +01:00
parent 49b02287dc
commit 8a5a229c3f
2 changed files with 2 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{{render "header"}}
<div id='main-outlet' {{bind-attr class=backgroundClass}}>
<div id='main-outlet'>
{{outlet}}
{{render "user-card"}}
</div>

View file

@ -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(