Mercurial > libervia-web
comparison src/browser/sat_browser/richtext.py @ 765:a55df9c37d0e
browser_side (blog): display title with h2 instead of h1 + add some bottom margin for the tags
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 25 Nov 2015 07:56:26 +0100 |
parents | 7390cba0bb44 |
children | f8a7a046ff9c |
comparison
equal
deleted
inserted
replaced
764:b392ea1514ee | 765:a55df9c37d0e |
---|---|
321 def setDisplayContent(self): | 321 def setDisplayContent(self): |
322 """Set the content of the editor_widget.HTMLTextEditor which is used for display/wysiwyg""" | 322 """Set the content of the editor_widget.HTMLTextEditor which is used for display/wysiwyg""" |
323 content = self._original_content | 323 content = self._original_content |
324 text = content['text'] | 324 text = content['text'] |
325 if 'title' in content and content['title']: | 325 if 'title' in content and content['title']: |
326 title = '<h1>%s</h1>' % html_tools.html_sanitize(content['title']) | 326 title = '<h2>%s</h2>' % html_tools.html_sanitize(content['title']) |
327 | 327 |
328 tags = "" | 328 tags = "" |
329 for tag in common.dict2iter('tag', content): | 329 for tag in common.dict2iter('tag', content): |
330 tags += "<li><a>%s</a></li>" % html_tools.html_sanitize(tag) | 330 tags += "<li><a>%s</a></li>" % html_tools.html_sanitize(tag) |
331 if tags: | 331 if tags: |