bigly-chat/views/messages.ejs
2024-11-04 04:21:47 -05:00

18 lines
No EOL
651 B
Text

<%- include('header.ejs') -%>
<div class="content">
<h1>Messages</h1>
<% for (let message of msgs) { %>
<div class='comment'>
<div><b>
<%= (new Date(message.date)+'').split(/(GMT|UTC)/g)[0] %>
</b></div>
<p>A <a class='link' href='<%= message.targetId %>'>
<%= message.targetType %>
</a> was sent</p>
<div class='comment'>
<pre><%= message.content %></pre>
</div>
</div>
<% } %>
</div>
<%- include('footer.ejs') -%>