[IMP]reload bg color if image not present
bzr revid: mba@tinyerp.com-20140131094157-gny5h8ngn8jbo8xy
This commit is contained in:
parent
e91d309d7b
commit
f0da1bd3c3
|
@ -270,7 +270,7 @@ class WebsiteBlog(http.Controller):
|
|||
def getPost(self, blog=None, **post):
|
||||
blog = request.registry.get('blog.post').browse(request.cr, SUPERUSER_ID, int(blog))
|
||||
values = {
|
||||
"image": "data:image/png;base64,%s" % blog.content_image,
|
||||
"image": blog.content_image,
|
||||
"date": blog.create_date ,
|
||||
"author": blog.create_uid.name,
|
||||
"author_image": "data:image/png;base64,%s" % blog.create_uid.image,
|
||||
|
|
|
@ -86,9 +86,6 @@ body article.page.current .big-image .inner .fader .text .goto-next, body articl
|
|||
opacity: 0;
|
||||
}
|
||||
|
||||
body article.page.current .big-image, body article.page.current .big-image {
|
||||
background: #B2B2B2;
|
||||
}
|
||||
|
||||
/* line 47, ../scss/styles.scss */
|
||||
body article.page.content-hidden .content {
|
||||
|
|
|
@ -93,7 +93,7 @@ ArticleAnimator.createPost = function(opts, callback){
|
|||
}
|
||||
|
||||
ArticleAnimator.contentizeElement = function($el, d){
|
||||
$el.find('.big-image').css({ backgroundImage: "url(" + d.image + ")" });
|
||||
$el.find('.big-image').css({ backgroundImage: (d.image)?"url(data:image/png;base64," + d.image + ")":""});
|
||||
$el.find('h1.title').html(d.title);
|
||||
$el.find('h2.description').html(d.title_secondary);
|
||||
$el.find('.content .text').html(d.content);
|
||||
|
|
|
@ -172,7 +172,7 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class='content text-center'>
|
||||
<div class='content'>
|
||||
<div class='text'></div>
|
||||
</div>
|
||||
</article>
|
||||
|
|
Loading…
Reference in New Issue