Mercurial > libervia-web
changeset 808:9e1e6d5241f9
browser_side: restore printing the day change while displaying history
author | souliane <souliane@mailoo.org> |
---|---|
date | Tue, 15 Dec 2015 20:04:03 +0100 |
parents | 0576fec37be0 |
children | c500bdb0c216 |
files | src/browser/public/libervia.css src/browser/sat_browser/chat.py |
diffstat | 2 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/browser/public/libervia.css Tue Dec 15 19:35:00 2015 +0100 +++ b/src/browser/public/libervia.css Tue Dec 15 20:04:03 2015 +0100 @@ -1043,7 +1043,13 @@ margin-top: 7px; } +.chatTextMe { + margin-top: 7px; + font-style: italic; +} + .chatTextInfo { + margin-top: 7px; font-weight: bold; font-style: italic; }
--- a/src/browser/sat_browser/chat.py Tue Dec 15 19:35:00 2015 +0100 +++ b/src/browser/sat_browser/chat.py Tue Dec 15 20:04:03 2015 +0100 @@ -245,6 +245,13 @@ self.content.add(ChatText(timestamp, nick, my_message, message, extra)) self.content_scroll.scrollToBottom() + def printDayChange(self, day): + """Display the day on a new line. + + @param day(unicode): day to display (or not if this method is not overwritten) + """ + self.printInfo("* " + day) + def setTitle(self, title=None, extra=None): """Refresh the title of this Chat dialog