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

63 lines
2.4 KiB
Text

<!DOCTYPE html>
<html>
<head>
<title>paste - <%- config["meta"]["name"] %></title>
<link href="/css/paste.css" rel="stylesheet">
<meta property="og:site_name" content="<%= config.meta.name %>">
<meta name="title" content="Paste on <%= config.meta.name %>">
<meta property="og:title" content="Paste on <%= config.meta.name %>">
<meta property="twitter:title" content="Paste on <%= config.meta.name %>">
<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>
<% } %>
<h2 class="nm">Paste</h2>
<p class="nm">A pastebin-esque page for <%= config["meta"]["name"] %>.</p><br>
<% if (typeof err == "string") { %>
<div class="err">
<p><%= err %></p>
</div>
<% } %>
<form method="post" enctype="multipart/form-data">
<div class="field">
<label for="name">Filename</label>
<input type="text" name="name" placeholder="Filename" value="index.txt">
</div>
<div class="field">
<label for="privacy">Upload Privacy:</label>
<select name="privacy">
<option value="0">Unlisted</option>
<option value="1">Public (shown on profile)</option>
</select>
</div>
<div class="field">
<textarea name="text" placeholder="Put text here..."></textarea>
</div>
<div class="field">
<label for="file">Upload File</label>
<input type="file" name="file">
</div>
<% if (config["captcha"]) { %>
<% if (account == undefined && config["captcha"]["enabled"] == true && config["captcha"]["show-at-anon-upload"] == 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>
<noscript>
<p><i>This instance requires Javascript in order to validate your request, due to a CAPTCHA requirement.</i></p>
</noscript>
<% } %>
<% } %>
<input type="submit" value="Paste">
<p><i>By clicking "Paste", you agree to the <a href="/terms">Terms of Service</a>.</i></p>
</form>
</div>
<%- include("../partial/footer") %>
</body>
</html>