mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: category backgrounds were broken
This commit is contained in:
parent
49b02287dc
commit
8a5a229c3f
2 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue