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/report.ejs
2023-05-12 00:32:13 -04:00

77 lines
3.2 KiB
Text

<!DOCTYPE html>
<html>
<head>
<title>report - <%- config["meta"]["name"] %></title>
<meta property="og:site_name" content="<%= config.meta.name %>">
<meta name="title" content="Report a File">
<meta property="og:title" content="Report a File">
<meta property="twitter:title" content="Report a File">
<meta property="og:type" content="website">
<%- include("../partial/html-head")%>
</head>
<body>
<%- include("../partial/header") %>
<div class="modal">
<% if (config.alert) { %>
<div class="err"><p><%-config.alert%></p></div>
<% } %>
<% if (typeof message == "string") { %>
<div class="suc">
<p><%= message %></p>
</div>
<% } %>
<% if (typeof err == "string") { %>
<div class="err">
<p><%= err %></p>
</div>
<% } %>
<h2 class="nm">Report</h2>
<p class="nm">Find something against <a href="/terms">TOS</a>? Send it over here.</p>
<br>
<% if (config["transparent-reports"]) {%>
<div class="err">
<p class="nm"><b>NOTE</b>: Any reports, once resolved, will be shown on <a href="/transparency">the transparency page</a>. Information deemed by the moderators to be private will be redacted.</p>
</div>
<% } %>
<form method="POST">
<div class="field">
<label for="email">Email</label>
<input type="email" name="email" placeholder="example@email.com" required>
<p class="nm">Expect a response to your report from <code><%= config["expect-reply-from"] %></code>.</p>
</div>
<div class="field">
<label for="offense">Offense</label>
<select name="offense">
<option value="invalid" selected disabled hidden>This upload breaks <%= config["meta"]["name"]%> rules because...</option>
<option value="0">Illegal Content (that is not copyright related)</option>
<option value="1">DMCA (illegal copyrighted content)</option>
<option value="2">Hateful content</option>
<option value="3">Other rule violation</option>
</select>
</div>
<div class="field">
<label for="upload">Offending Upload ID</label>
<% if (upload !== null) { %>
<input name="upload" value="<%= upload %>" placeholder="t4kuC" required>
<% } else { %>
<input name="upload" placeholder="t4kuC" required>
<% } %>
</div>
<div class="field">
<p class="nm">Additional information</p>
<textarea name="comment" placeholder="This upload is against TOS because..." style="width:100%;min-height:fit-content;"></textarea>
</div>
<% if (config["captcha"]) { %>
<% if (config["captcha"]["enabled"] == true && config["captcha"]["show-at-report"] == true) { %>
<script src="https://js.hcaptcha.com/1/api.js?recaptchacompat=off" async defer></script>
<div class="h-captcha" data-sitekey="<%= config['captcha']['sitekey'] %>"></div>
<% } %>
<% } %>
<input type="submit" value="Submit">
</form>
</div>
<%- include("../partial/footer") %>
</body>
</html>