8a4aa4efdd
This removes the need for `switch (obj)` in the template which is not allowed in strict mode. Additionally using a named variable speeds up rendering.
5 lines
309 B
HTML
5 lines
309 B
HTML
<div class="chat-message {{{o.extra_classes}}}" data-isodate="{{{o.isodate}}}" data-msgid="{{{o.msgid}}}">
|
|
<span class="chat-msg-author chat-msg-{{{o.sender}}}">{{{o.time}}} {{{o.username}}}: </span>
|
|
<span class="chat-msg-content"><!-- message gets added here via renderMessage --></span>
|
|
</div>
|