mirror of
https://git.wownero.com/wownero/wownero-funding-system.git
synced 2024-08-15 00:53:45 +00:00
Support line breaks in comments + CSS changes
This commit is contained in:
parent
e3252d0071
commit
a6ce535b4e
7 changed files with 44 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue