summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/banners.json4
-rw-r--r--templates/banners.swig3
-rw-r--r--templates/banners/donate.swig17
-rw-r--r--templates/banners/virusscans.swig3
-rw-r--r--templates/faq.swig27
-rw-r--r--templates/index.swig11
-rw-r--r--templates/layout.swig17
-rw-r--r--templates/nav.swig9
-rw-r--r--templates/tools.swig55
-rw-r--r--templates/upload_form.swig6
10 files changed, 152 insertions, 0 deletions
diff --git a/templates/banners.json b/templates/banners.json
new file mode 100644
index 0000000..73901ea
--- /dev/null
+++ b/templates/banners.json
@@ -0,0 +1,4 @@
+[
+ "banners/virusscans.swig",
+ "banners/donate.swig"
+]
diff --git a/templates/banners.swig b/templates/banners.swig
new file mode 100644
index 0000000..59b72e8
--- /dev/null
+++ b/templates/banners.swig
@@ -0,0 +1,3 @@
+{% for banner in banners %}
+ {% include banner %}
+{% endfor %}
diff --git a/templates/banners/donate.swig b/templates/banners/donate.swig
new file mode 100644
index 0000000..dcd7f7c
--- /dev/null
+++ b/templates/banners/donate.swig
@@ -0,0 +1,17 @@
+<p class="alert alert-info">
+ <strong>pomf.se is a free service, but our hosting bill isn't</strong> &mdash; we need almost $100 a month for that. Donations help keep pomf.se free, online, and fast. Everything (after fees) goes to the hosting bill.
+ <span class="donate-btns">
+ <a class="donate-btn donate-paypal" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=BHUVEZY96YZ6N" target="_BLANK">
+ <span class="icon icon-paypal"></span>
+ PayPal
+ </a>
+ <a class="donate-btn donate-bitcoin" href="bitcoin:1CrbCGSTFM5ccmjFoU4jRSQod44Ttu8nHY?label=pomf.se&amp;message=Hosting%20Bills" target="_BLANK">
+ <span class="icon icon-bitcoin"></span>
+ Bitcoin
+ </a>
+ <a class="donate-btn donate-flattr" href="https://flattr.com/submit/auto?user_id=neku&amp;url=http://pomf.se" target="_BLANK">
+ <span class="icon icon-flattr"></span>
+ Flattr
+ </a>
+ </span>
+</p>
diff --git a/templates/banners/virusscans.swig b/templates/banners/virusscans.swig
new file mode 100644
index 0000000..1de0f92
--- /dev/null
+++ b/templates/banners/virusscans.swig
@@ -0,0 +1,3 @@
+<p class="alert alert-error">
+ <strong>Virus scans are now a daily routine</strong> &mdash; if a file gets detected it will be removed without further notice.
+</p>
diff --git a/templates/faq.swig b/templates/faq.swig
new file mode 100644
index 0000000..efcdd5a
--- /dev/null
+++ b/templates/faq.swig
@@ -0,0 +1,27 @@
+{% extends "layout.swig" %}
+
+{% block title %}FAQ{% endblock %}
+{% block body %}
+<article>
+ <div class="jumbotron">
+ <h1><abbr title="Frequently asked questions">FAQ</abbr></h1>
+ </div>
+ <h2>What is Pantsu.cat?</h2>
+ <p><span role="definition"><dfn>Pantsu.cat</dfn> is a simple to use free file hosting service.</span> It lets you share your photos, documents, music, videos and more with others online.</p>
+ <h2>What works are allowed?</h2>
+ <p>Pantsu.cat welcomes uploading all works, as long as the work is legal in Australia and you have the legal right to publish the work on our service.</p>
+ <p>As an exception to this policy to prevent abuse, we do not allow malware on our service. Any malware that could be used to infect other computers may be removed from our service at our discretion.</p>
+ <h2>Do you keep logs of uploaded works?</h2>
+ <p>We don't collect or log any data of our users in respect for privacy. We only have files uploaded by our users.</p>
+ <h2>Can you remove my copyrighted work?</h2>
+ <p>Please submit your copyright takedown notice to <a href="mailto:abuse@pantsu.cat">abuse@pantsu.cat</a>. We will handle your notice within 24 hours and disable access to the infringing work after receiving a notice compliant with the Copyright Act 1968 (Australia).</p>
+ <h2>Can you remove works that are defaming me or otherwise infringing my non-copyright rights?</h2>
+ <p>Pantsu.cat respects takedowns for other works when accompanied with a certified Australian court order. If you are unable to obtain the order, a preliminary injuction or court order is typically also sufficient. Please forward the notice to <a href="mailto:abuse@pantsu.cat">abuse@pantsu.cat</a>.</p>
+ <h2>Can you remove illegal works?</h2>
+ <p>Please contact the appropriate law enforcement agency if you notice illegal works hosted on Pantsu.cat. We have not been trained or qualified to investigate and fight crimes and enforce the law, so it's not appropriate to send accusations of illegal activity to us. <strong>You must contact the appropriate law enforcement office.</strong> They may then contact us if appropriate.</p>
+ <p>If you are an Australian law enforcement official and you need our assistance, please contact <a href="mailto:abuse@pantsu.cat">abuse@pantsu.cat</a>. If you are a law enforcement official from another country, we may voluntarily cooperate if the crime you are investigating would also be illegal in Australia.</p>
+ <h2>I have a question...</h2>
+ <p>Send us an email at <a href="mailto:info@pantsu.cat">info@pantsu.cat</a> and let's talk!</p>
+</article>
+{% include "nav.swig" %}
+{% endblock %}
diff --git a/templates/index.swig b/templates/index.swig
new file mode 100644
index 0000000..ecea739
--- /dev/null
+++ b/templates/index.swig
@@ -0,0 +1,11 @@
+{% extends "layout.swig" %}
+
+{% block body %}
+<div class="jumbotron">
+ <h1>Pantsu~</h1>
+ <p class="lead">Max upload size is {{max_upload_size}}&nbsp;MiB, read the <a href="faq.html"><abbr title="Frequently asked questions">FAQ</abbr></a></p>
+ {% include "upload_form.swig" %}
+</div>
+{% include "banners.swig" %} {# Deprecated since version 2.1.0. #}
+{% include "nav.swig" %}
+{% endblock %}
diff --git a/templates/layout.swig b/templates/layout.swig
new file mode 100644
index 0000000..0e860dd
--- /dev/null
+++ b/templates/layout.swig
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <meta name="generator" content="Pomf {{pkgVersion}}">
+ <title>Pantsu.cat &middot; {% block title %}Kawaii File Hosting{% endblock %}</title>
+ <link rel="icon" href="favicon.ico">
+ <link rel="stylesheet" href="pomf.min.css">
+ <script src="pomf.min.js"></script>
+ </head>
+ <body>
+ <div class="container">
+ {% block body %}What the fuck are you doing here, <span lang="jp">baka</span>?{% endblock %}
+ </div>
+ </body>
+</html>
diff --git a/templates/nav.swig b/templates/nav.swig
new file mode 100644
index 0000000..d98de7b
--- /dev/null
+++ b/templates/nav.swig
@@ -0,0 +1,9 @@
+<nav>
+ <ul>
+ <li><a href="/">Pantsu</a></li>
+ <li><a href="//p.pantsu.cat/">Paste</a></li>
+ <li><a href="tools.html">Tools</a></li>
+ <li><a href="//git.pantsu.cat/pantsu/pomf">Git</a></li>
+ <li><a href="//transparency.pantsu.cat">Transparency</a></li>
+ </ul>
+</nav>
diff --git a/templates/tools.swig b/templates/tools.swig
new file mode 100644
index 0000000..19af1f8
--- /dev/null
+++ b/templates/tools.swig
@@ -0,0 +1,55 @@
+{% extends "layout.swig" %}
+
+{% block title %}Tools{% endblock %}
+{% block body %}
+<div class="jumbotron">
+<h1>Pomf Tools</h1>
+</div>
+<section>
+ <h2>pomfload</h2>
+ <dl>
+ <dt>Download</dt>
+ <dd><a href="https://git.pantsu.cat/pantsu/pomfload">https://git.pantsu.cat/pantsu/pomfload</a></dd>
+ <dt>Contact</dt>
+ <dd><a href="https://twitter.com/AnonymousLink">https://twitter.com/AnonymousLink</a></dd>
+ </dl>
+</section>
+<section>
+ <h2>limf</h2>
+ <dl>
+ <dt>Download</dt>
+ <dd><a href="https://github.com/lich/limf">https://github.com/lich/limf</a></dd>
+ <dt>Contact</dt>
+ <dd><a href="http://lich.github.io/">http://lich.github.io/</a></dd>
+ </dl>
+</section>
+<section>
+ <h2>1339secure</h2>
+ <dl>
+ <dt>Download</dt>
+ <dd><a href="https://git.pantsu.cat/pantsu/1339secure">https://git.pantsu.cat/pantsu/1339secure</a></dd>
+ <dt>Contact</dt>
+ <dd><a href="mailto:adriankoshcha@teknik.io">adriankoshcha@teknik.io</a></dd>
+ </dl>
+</section>
+<section>
+ <h2>ShareX</h2>
+ <dl>
+ <dt>Download</dt>
+ <dd><a href="https://github.com/ShareX/ShareX/">https://github.com/ShareX/ShareX/</a></dd>
+ <dt>Settings</dt>
+ <dd><a href="https://p.pantsu.cat/view/raw/8c36da7e">https://p.pantsu.cat/view/raw/8c36da7e</a></dd>
+ </dl>
+</section>
+<section>
+ <h2>Gyazowin</h2>
+ <dl>
+ <dt>Download</dt>
+ <dd><a href="https://git.pantsu.cat/pantsu/gyazowin">https://git.pantsu.cat/pantsu/gyazowin</a></dd>
+ <dd><a href="https://i.pantsu.cat/hnpgjr.exe">https://i.pantsu.cat/hnpgjr.exe</a></dd>
+ <dt>Contact</dt>
+ <dd><a href="https://twitter.com/4vail">https://twitter.com/4vail</a></dd>
+ </dl>
+</section>
+{% include "nav.swig" %}
+{% endblock %}
diff --git a/templates/upload_form.swig b/templates/upload_form.swig
new file mode 100644
index 0000000..6c5de14
--- /dev/null
+++ b/templates/upload_form.swig
@@ -0,0 +1,6 @@
+<form id="upload-form" enctype="multipart/form-data" method="post" action="upload.php?output=html">
+ <button id="upload-btn" class="btn" type="button">Select or drop file(s)</button>
+ <input type="file" id="upload-input" name="files[]" multiple data-max-size="{{max_upload_size}}MiB">
+ <input type="submit" value="Submit">
+</form>
+<ul id="upload-filelist"></ul>