Mercurial > libervia-web
diff browser_side/base_panels.py @ 358:df743589bb8c
browser_side: microblog images have a fixed CSS "max-width" and they are clickable
author | souliane <souliane@mailoo.org> |
---|---|
date | Thu, 13 Feb 2014 15:34:34 +0100 |
parents | b95099a1d11b |
children | 019e1e706e74 |
line wrap: on
line diff
--- a/browser_side/base_panels.py Thu Feb 13 15:32:59 2014 +0100 +++ b/browser_side/base_panels.py Thu Feb 13 15:34:34 2014 +0100 @@ -37,7 +37,7 @@ from tools import html_sanitize, html_strip, inlineRoot -from sat_frontends.tools.strings import addURLToText +from sat_frontends.tools.strings import addURLToText, addURLToImage from sat.core.i18n import _ @@ -461,7 +461,8 @@ self.removeKeyboardListener(self) def setDisplayContent(self): - self.setHTML(addURLToText(self._original_content['text']) if self.__enhance_display else self._original_content['text']) + text = addURLToImage(self._original_content['text']) + self.setHTML(addURLToText(text) if self.__enhance_display else text) def setFocus(self, focus): if focus: