summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2013-10-01 14:55:42 +0200
committerThibault Delavallée <tde@openerp.com>2013-10-01 14:55:42 +0200
commit1d2afb7cbfa65eb8b497f7516aa4e95920a6aea3 (patch)
treec68617da1ae9daab1328af70faf39775a37d279f /addons
parentc6c8f6d835935bf825480a82ef4181025ab24c09 (diff)
[IMP] website_blog: updated blog_short_content to new html cleaner
bzr revid: tde@openerp.com-20131001125542-um5jv06a987vyftc
Diffstat (limited to 'addons')
-rw-r--r--addons/website_blog/website_blog.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/addons/website_blog/website_blog.py b/addons/website_blog/website_blog.py
index 4671153fe61..001029d3603 100644
--- a/addons/website_blog/website_blog.py
+++ b/addons/website_blog/website_blog.py
@@ -76,9 +76,14 @@ class BlogPost(osv.Model):
shorten=True,
max_length=self._shorten_max_char,
expand_options={
- 'oe_expand_href': '/blog/%d/%d' % (page.category_id.id, page.id),
- 'oe_expand_a_class': 'oe_mail_expand btn btn-info'
- }, br=True
+ 'oe_expand_container_tag': 'div',
+ 'oe_expand_container_class': 'oe_mail_expand text-center',
+ 'oe_expand_container_content': '',
+ 'oe_expand_a_href': '/blog/%d/%d' % (page.category_id.id, page.id),
+ 'oe_expand_a_class': 'oe_mail_expand btn btn-info',
+ 'oe_expand_separator_node': 'br',
+ },
+ protect_sections=True,
)
except Exception:
body_short = False