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/all-reports.ejs

31 lines
1.2 KiB
Text

<!DOCTYPE html>
<html>
<head>
<title>all reports - <%- config["meta"]["name"] %></title>
<link href="/css/admin.css" rel="stylesheet">
<%- include("../../partial/html-head")%>
</head>
<body>
<%- include("../../partial/header") %>
<div class="modal">
<a href="/admin"><button>Back to admin panel</button></a><br><br>
<h2 class="nm">Admin Panel</h2>
<p class="nm">No longer must you tinker with the scripts, website god.</p>
<div class="container">
<h2 class="nm container-name">All Reports</h2>
<% for (var c in reports) { %>
<div class="oneliner">
<p class="nm">
<a href="/reports/<%= reports[c].id %>">Report</a> on <a href="/f/<%= reports[c].upload %>"><%= reports[c].upload %></a> for category <b><%= reports[c].actualType %></b> from <code><%= reports[c].respond %></code>
<% if (reports[c].unread == true) {%>(<b>Unread</b>)<%} else {%>(<b>Read</b>)<%}%>
</p>
</div>
<% } %>
<% if (reports.length == 0) { %>
<p class="nm"><i>No reports could be found.</i></p>
<% } %>
</div>
</div>
<%- include("../../partial/footer") %>
</body>
</html>