58 lines
No EOL
2.1 KiB
Text
58 lines
No EOL
2.1 KiB
Text
<!DOCTYPE html>
|
|
<html>
|
|
<%- include("../components/page-head.ejs") %>
|
|
<body>
|
|
<main>
|
|
<h1>mininq mailbox</h1>
|
|
<p>slowchat, for sysadmins who aren't quite equine.</p>
|
|
<h2>mailboxes</h2>
|
|
<p>
|
|
MAILBOX:
|
|
<progress value="<%= mailboxCount %>" max="<%= mailboxMaximum %>"
|
|
style="width: <%= mailboxMaximum * 2 %>ch;"></progress>
|
|
<%= mailboxCount %>/<%= mailboxMaximum %>
|
|
</p>
|
|
<p>
|
|
MAILBOX (PRIORITY):
|
|
<progress value="<%= mailboxVerifiedCount %>" max="<%= mailboxVerifiedMaximum %>"
|
|
style="width: <%= mailboxVerifiedMaximum * 2 %>ch;"></progress>
|
|
<%= mailboxVerifiedCount %>/<%= mailboxVerifiedMaximum %>
|
|
</p>
|
|
<h2>current mininqs</h2>
|
|
<ul>
|
|
<% mail.forEach((mininq) => { %>
|
|
<li class="mininq" id="<%= mininq.id %>">
|
|
<%- include("../components/mininq.ejs", {mininq}) %>
|
|
<details>
|
|
<summary><h3>reply...</h3></summary>
|
|
<form action="/mininq/mbox/r" method="post">
|
|
<input type="hidden" name="id" value="<%= mininq.id %>">
|
|
<p>
|
|
<label for="action">action:</label>
|
|
<select name="action" id="action" required>
|
|
<option value="reply" selected>Reply & make public</option>
|
|
<option value="public" selected>Make public</option>
|
|
<option value="delete" selected>Delete mininq</option>
|
|
</select>
|
|
</p>
|
|
<p>
|
|
<label for="skey">Secret Key:</label>
|
|
<input type="text" name="skey" id="skey" required>
|
|
</p>
|
|
<p>
|
|
<label for="message">Message:</label><br />
|
|
<textarea name="msg" id="message" rows="4" cols="30"></textarea>
|
|
</p>
|
|
<p>
|
|
<input type="submit" value="Submit">
|
|
</p>
|
|
</form>
|
|
</details>
|
|
</li>
|
|
<% }) %>
|
|
</ul>
|
|
</main>
|
|
<%- include("../components/footer.ejs") %>
|
|
<%- include("../components/post-main.ejs") %>
|
|
</body>
|
|
</html> |