1
0
mirror of https://github.com/moparisthebest/kaiwa synced 2024-10-31 23:55:09 -04:00
kaiwa/clientapp/templates/includes/bareMessage.jade

17 lines
540 B
Plaintext
Raw Normal View History

2015-04-04 10:47:01 -04:00
- var messageClasses = message.classList
2015-04-07 07:12:20 -04:00
if firstEl
2015-04-04 10:47:01 -04:00
- messageClasses += ' first'
.message(id='chat'+message.cid, class=messageClasses)
.date(title=messageDate.format('{Dow}, {MM}/{dd}/{yyyy} - {h}:{mm} {Tt}')) #{messageDate.format('{h}:{mm} {tt}')}
2013-09-26 15:34:31 -04:00
p.body !{message.processedBody}
2014-01-02 03:52:26 -05:00
- var urls = message.urls
section.embeds
each item in urls
if item.source == 'body'
section.embed.hidden
a.source(href=item.href)= item.desc
else
section.embed
a.source(href=item.href)= item.desc