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-files.ejs

35 lines
1.1 KiB
Text

<!DOCTYPE html>
<html>
<head>
<title>all files - <%- 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 files</h2>
<% for (var c in uploads) { %>
<div class="oneliner">
<p class="nm">
<a href="/f/<%= uploads[c].id %>"><%= uploads[c].name %></a>
<% if (!uploads[c].privacy || uploads[c].privacy == 0) { %>
(Unlisted)
<% } else { %>
(Public)
<% } %>
</p>
</div>
<% } %>
<% if (uploads.length == 0) { %>
<p class="nm"><i>No uploads could be found.</i></p>
<% } %>
</div>
</div>
<%- include("../../partial/footer") %>
</body>
</html>