diff browser_side/panels.py @ 120:054b7b3424a3

browser side: microblog's entry header with pseudo and timestamp
author Goffi <goffi@goffi.org>
date Thu, 07 Jul 2011 19:03:06 +0200
parents a8d11fdea090
children 5cb852d9757e
line wrap: on
line diff
--- a/browser_side/panels.py	Wed Jul 06 03:03:07 2011 +0200
+++ b/browser_side/panels.py	Thu Jul 07 19:03:06 2011 +0200
@@ -481,11 +481,11 @@
         _datetime = datetime.fromtimestamp(mblog_entry.timestamp)
 
         self.panel = HTMLPanel("""
+            <div class='mb_entry_header'><span class='mb_entry_author'>%(author)s</span> on <span class='mb_entry_timestamp'>%(timestamp)s</span></div>
             <div class="mb_entry_avatar" id='id_avatar'></div>
             <div class="mb_entry_dialog">
                 <p class="bubble">%(body)s</p>
             </div>
-            <div class='mb_entry_timestamp'>%(timestamp)s</div>
             """ % {"author": html_sanitize(self.author),
                    "timestamp": _datetime,
                    "body": html_sanitize(mblog_entry.content)