Support line breaks in comments + CSS changes

This commit is contained in:
Sander Ferdinand 2018-10-25 23:48:49 +02:00
parent e3252d0071
commit a6ce535b4e
No known key found for this signature in database
GPG key ID: 7BBC83D7A8810AAB
7 changed files with 44 additions and 16 deletions

View file

@ -379,6 +379,10 @@ class Comment(base):
ix_comment_replied_to = sa.Index("ix_comment_replied_to", replied_to)
ix_comment_proposal_id = sa.Index("ix_comment_proposal_id", proposal_id)
@property
def message_html(self):
return [line for line in self.message.strip().split('\r\n') if line]
@property
def ago(self):
from funding.bin.utils_time import TimeMagic