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-ip-block.ejs
2022-08-09 04:39:25 -04:00

43 lines
1.5 KiB
Text

<!DOCTYPE html>
<html>
<head>
<title><%= ip.ip %> - <%- 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>
<% } %>
<% if (typeof err == "string") { %>
<div class="err">
<p><%= err %></p>
</div>
<% } %>
<a href="/admin/blocks"><button>Back to blocked IP list</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"><code><%= ip.ip %></code> [<a href="https://ip.me/ip/<%= ip.me %>">IP Information</a>]</h2>
<div>
<% if (ip.blockedBy) { %>
<p class="nm">
Blocked by: <a href="/u/<%= ip.blockedBy.account %>"><code><%= ip.blockedBy.account %></code></a> from IP <code><%= ip.blockedBy.ip %></code>
</p>
<% } %>
<p class="nm">Reason: <code><%= ip.reason %></code></p>
</div>
<h3 class="nmb">Actions</h3>
<form method="POST">
<input type="hidden" name="action" value="lift">
<input type="submit" value="Lift block">
</form>
</div>
</div>
<%- include("../../partial/footer") %>
</body>
</html>