This repository has been archived on 2023-05-12. You can view files and clone it, but cannot push or open issues or pull requests.
media-host/views/pages/admin-actions/view-report.ejs
2022-08-09 03:14:00 -04:00

47 lines
1.9 KiB
Text

<!DOCTYPE html>
<html>
<head>
<title>report - <%- config["meta"]["name"] %></title>
<link href="/css/admin.css" rel="stylesheet">
<%- include("../../partial/html-head")%>
</head>
<body>
<%- include("../../partial/header") %>
<div class="modal">
<% if (typeof message == "string") { %>
<div class="suc">
<p><%= message %></p>
</div>
<% } %>
<h2 class="nm">Report</h2>
<div style="margin-top:10px;margin-bottom:5px;">
<p class="nm">Type: <b><%= report.actualType %></b></p>
<p class="nm">Upload: <b><a href="/f/<%= report.upload %>">/f/<%= report.upload %></a></b> [<a href="/f/<%= report.upload %>/delete">Remove</a>]</p>
<p class="nm">Email: <code><%= report.respond %></code> [<a href="mailto:<%= report.respond %>">Email</a>]</p>
<p class="nm">Comment: <i><%= report.comments %></i></p>
<% if (report.ip) {%><p class="nm">IP: <code><%= report.ip %></code> [<a href="https://ip.me/ip/<%= report.ip %>">IP Information</a>]</p><% } %>
</div>
<div class="report-actions">
<% if (report.unread) { %>
<form action="/reports/<%= report.id %>/read" method="POST">
<input type="submit" value="Mark as read">
</form>
<% } else { %>
<form action="/reports/<%= report.id %>/unread" method="POST">
<input type="submit" value="Mark as unread">
</form>
<% } %>
<% if (report.unsolved) { %>
<form action="/reports/<%= report.id %>/solved" method="POST">
<input type="submit" value="Mark as solved">
</form>
<% } else { %>
<form action="/reports/<%= report.id %>/unsolved" method="POST">
<input type="submit" value="Mark as unsolved">
</form>
<% } %>
</div>
</div>
<%- include("../../partial/footer") %>
</body>
</html>