Mercurial > libervia-web
changeset 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 | 2d40b0f5fb37 |
files | browser_side/panels.py public/libervia.css |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
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)
--- a/public/libervia.css Wed Jul 06 03:03:07 2011 +0200 +++ b/public/libervia.css Thu Jul 07 19:03:06 2011 +0200 @@ -700,12 +700,22 @@ .microblogPanel { /* margin: auto; width: 95% !important;*/ + width: 100%; } .mb_entry { min-height: 64px; } +.mb_entry_header +{ + background: #AFAFAF; +} + +.mb_entry_author { + font-weight: bold; +} + .mb_entry_avatar { float: left; }