# HG changeset patch # User Adrien Vigneron # Date 1309826097 -7200 # Node ID c64b00f314611ef206ec3d1fb870199db68545db # Parent a87cfe9e013e23daec13f96a3bb8ad580082db41 browser side: microblog entries diff -r a87cfe9e013e -r c64b00f31461 browser_side/panels.py --- a/browser_side/panels.py Tue Jul 05 02:34:33 2011 +0200 +++ b/browser_side/panels.py Tue Jul 05 02:34:57 2011 +0200 @@ -479,12 +479,18 @@ _datetime = datetime.fromtimestamp(mblog_entry.timestamp) - panel = HTMLPanel("
on
%(body)s
" % - {"author": html_sanitize(mblog_entry.author), - "timestamp": _datetime, - "body": html_sanitize(mblog_entry.content)} - ) - panel.setStyleName('microblogEntry') + panel = HTMLPanel(""" +
%(author)s
+
+

%(body)s

+
+
%(timestamp)s
+ """ % {"avatar": "/media/misc/empty_avatar", + "author": html_sanitize(mblog_entry.author), + "timestamp": _datetime, + "body": html_sanitize(mblog_entry.content) + }) + panel.setStyleName('mb_entry') self.add(panel) class MicroblogPanel(LiberviaWidget):