bigly-chat/views/messages.ejs

18 lines
651 B
Text
Raw Permalink Normal View History

2024-11-25 14:12:44 -05:00
<%- 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') -%>