Files
lost-city-Website/view/mod/chat.ejs
T
2025-02-09 03:28:30 -05:00

30 lines
1.1 KiB
Plaintext

<%- include('../_partial/header.ejs', { title: 'Public Chat Log' }); %>
<%- include('../_components/frame-top.ejs'); %>
<%- include('../_components/content-start.ejs'); %>
<%- include('../_components/title-box.ejs', { title: 'Public Chat Log' }); %>
<%- include('../_components/content-body-start.ejs'); %>
<div style="height: 500px; overflow-y: scroll">
<% for (const log of logs) { %>
<div style="text-align: left">
<strong>
<a target="_blank" href="<%= embedCoord(log.coord) %>"><%= toDisplayCoord(log.coord) %></a>,
World: <%= log.world - 9 %>
</strong>
<span style="float: right">
<%= log.timestamp.toISOString().replace("T"," ").substring(0, 19); %>
</span>
<br>
<a href="/mod/overview/<%= log.username %>"><%= toDisplayName(log.username); %></a>: <%= log.message %>
</div>
<hr>
<% } %>
</div>
<%- include('../_components/content-body-end.ejs'); %>
<%- include('../_components/content-end.ejs'); %>
<%- include('../_partial/footer.ejs'); %>