diff options
| author | Mandragorat Wandystanu <wktir@wandystan.eu> | 2017-11-18 01:26:16 +0100 |
|---|---|---|
| committer | Mandragorat Wandystanu <wktir@wandystan.eu> | 2017-11-18 01:26:16 +0100 |
| commit | 512fb6d72f897e688143dee13ae5fd6b87cb4791 (patch) | |
| tree | 6edd71f8cee1fd0c5ef9397ff32df482f53098c4 /templates | |
| parent | 66561d4b4fe195b81446c94bdbfdcda4fb7167f7 (diff) | |
New site layout.
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/404.swig | 12 | ||||
| -rw-r--r-- | templates/banners.swig | 3 | ||||
| -rw-r--r-- | templates/banners/donations.swig | 23 | ||||
| -rw-r--r-- | templates/banners/malware_scans.swig | 3 | ||||
| -rw-r--r-- | templates/faq.swig | 27 | ||||
| -rw-r--r-- | templates/index.swig | 11 | ||||
| -rw-r--r-- | templates/layout.swig | 37 | ||||
| -rw-r--r-- | templates/nav.swig | 9 | ||||
| -rw-r--r-- | templates/tools.swig | 74 | ||||
| -rw-r--r-- | templates/upload_form.swig | 6 | ||||
| -rw-r--r-- | templates/upload_logged.swig | 21 | ||||
| -rw-r--r-- | templates/upload_unlogged.swig | 10 |
12 files changed, 65 insertions, 171 deletions
diff --git a/templates/404.swig b/templates/404.swig new file mode 100644 index 0000000..2da998c --- /dev/null +++ b/templates/404.swig @@ -0,0 +1,12 @@ +{% extends "layout.swig" %} + +{% block title %}błąd 404{% endblock %} + +{% block menu %} +<li>⮬ <a href="/">wyślij plik</a></li> +{% endblock %} + +{% block body %} +<h1>Błąd 404</h1> +<p>Nie znaleziono pliku którego szukasz</p> +{% endblock %} diff --git a/templates/banners.swig b/templates/banners.swig deleted file mode 100644 index 59b72e8..0000000 --- a/templates/banners.swig +++ /dev/null @@ -1,3 +0,0 @@ -{% for banner in banners %} - {% include banner %} -{% endfor %} diff --git a/templates/banners/donations.swig b/templates/banners/donations.swig deleted file mode 100644 index 98c5418..0000000 --- a/templates/banners/donations.swig +++ /dev/null @@ -1,23 +0,0 @@ -<p class="alert alert-info"> - <strong>{{siteName}} is free to use, but our hosting costs are far from it</strong> — donations are what keep {{siteName}} alive, free, and fast.</strong> - <span class="donate-btns"> - {% if paypalUrl != '' %} - <a class="donate-btn donate-paypal" href="{{paypalUrl}}" target="_BLANK"> - <span class="icon icon-paypal"></span> - PayPal - </a> - {% endif %} - {% if bitcoinAddress != '' %} - <a class="donate-btn donate-bitcoin" href="bitcoin:{{bitcoinAddress}}?label={{siteName}}&message=Hosting%20Costs" target="_BLANK"> - <span class="icon icon-bitcoin"></span> - Bitcoin - </a> - {% endif %} - {% if flattrUrl != '' %} - <a class="donate-btn donate-flattr" href="{{flattrUrl}}" target="_BLANK"> - <span class="icon icon-flattr"></span> - Flattr - </a> - {% endif %} - </span> -</p> diff --git a/templates/banners/malware_scans.swig b/templates/banners/malware_scans.swig deleted file mode 100644 index 8ec6e58..0000000 --- a/templates/banners/malware_scans.swig +++ /dev/null @@ -1,3 +0,0 @@ -<p class="alert alert-error"> - <strong>Malware scans are run daily</strong> — files identified as malware will be removed without further notice. -</p> diff --git a/templates/faq.swig b/templates/faq.swig deleted file mode 100644 index 0f89245..0000000 --- a/templates/faq.swig +++ /dev/null @@ -1,27 +0,0 @@ -{% 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 {{siteName}}?</h2> - <p><span role="definition"><dfn>{{siteName}}</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>{{siteName}} 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:{{abuseContact}}">{{abuseContact}}</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>{{siteName}} 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:{{abuseContact}}">{{abuseContact}}</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:{{abuseContact}}">{{abuseContact}}</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:{{infoContact}}">{{infoContact}}</a> and let's talk!</p> -</article> -{% include "nav.swig" %} -{% endblock %} diff --git a/templates/index.swig b/templates/index.swig deleted file mode 100644 index 02344f4..0000000 --- a/templates/index.swig +++ /dev/null @@ -1,11 +0,0 @@ -{% extends "layout.swig" %} - -{% block body %} -<div class="jumbotron"> - <h1>{{siteName}}~</h1> - <p class="lead">Max upload size is {{max_upload_size}} MiB, read the <a href="faq.html"><abbr title="Frequently asked questions">FAQ</abbr></a></p> - {% include "upload_form.swig" %} -</div> -{% include "banners.swig" %} -{% include "nav.swig" %} -{% endblock %} diff --git a/templates/layout.swig b/templates/layout.swig index 68f44d7..fc79086 100644 --- a/templates/layout.swig +++ b/templates/layout.swig @@ -1,17 +1,24 @@ <!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>{{siteName}} · {% 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 lang="pl"> +<head> + <meta charset="utf-8"> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="icon" href="favicon.ico"> + <link rel="stylesheet" href="pomf.min.css"> + <title>{{siteName}} − {% block title %}wandejski uploader plików{% endblock %}</title> +</head> +<body> + <header> + <menu> + <li><strong><a href="/w2/">Mandragorat Wandystanu</a></strong></li> + {% block menu %}<li>elementy menu</li>{% endblock %} + </menu> + </header> + <article> + {% block body %}<p>Co tu robisz, <span lang="ru">пиздец</span>?</p>{% endblock %} + </article> + <footer> + <p>Mandragorat Wandystanu, 2004-2017; kontakt w sprawie działania strony – towarzyszka <a href="/w2/profile,196">Paulina Natalia Wileńska</a></p> + </footer> +</body> </html> diff --git a/templates/nav.swig b/templates/nav.swig deleted file mode 100644 index f10fef7..0000000 --- a/templates/nav.swig +++ /dev/null @@ -1,9 +0,0 @@ -<nav> - <ul> - <li><a href="/">{{siteName}}</a></li> - <li><a href="//p.pantsu.cat/">Paste</a></li> - <li><a href="tools.html">Tools</a></li> - <li><a href="https://github.com/pomf/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 deleted file mode 100644 index d81a92b..0000000 --- a/templates/tools.swig +++ /dev/null @@ -1,74 +0,0 @@ -{% 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://github.com/ewhal/pomfload">https://github.com/ewhal/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://github.com/AdrianKoshka/1339secure">https://github.com/AdrianKoshka/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://getsharex.com">https://getsharex.com</a></dd> - <dt>Source</dt> - <dd><a href="https://github.com/ShareX/ShareX">https://github.com/ShareX/ShareX</a></dd> - <dt>Contact</dt> - <dd><a href="https://webchat.freenode.net/?channels=%23ShareX">#ShareX on irc.freenode.net</a></dd> - </dl> -</section> -<section> - <h2>Gyazowin</h2> - <dl> - <dt>Download</dt> - <dd><a href="https://github.com/avail/gyazowin">https://github.com/avail/gyazowin</a></dd> - <dt>Contact</dt> - <dd><a href="https://twitter.com/4vail">https://twitter.com/4vail</a></dd> - </dl> -</section> -<section> - <h2>Pomfshare</h2> - <dl> - <dt>Download</dt> - <dd><a href="https://github.com/Nyubis/Pomfshare">https://github.com/Nyubis/Pomfshare</a></dd> - <dt>Contact</dt> - <dd><a href="https://github.com/Nyubis">https://github.com/Nyubis</a></dd> - </dl> -</section> -<section> - <h2>Pomf Rehost</h2> - <dl> - <dt>Download</dt> - <dd><a href="https://git.fuwafuwa.moe/lesderid/pomf-rehost">https://git.fuwafuwa.moe/lesderid/pomf-rehost</a></dd> - <dt>Contact</dt> - <dd><a href="mailto:les@fuwafuwa.moe">les@fuwafuwa.moe</a></dd> - </dl> -</section> -{% include "nav.swig" %} -{% endblock %} diff --git a/templates/upload_form.swig b/templates/upload_form.swig deleted file mode 100644 index 6c5de14..0000000 --- a/templates/upload_form.swig +++ /dev/null @@ -1,6 +0,0 @@ -<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> diff --git a/templates/upload_logged.swig b/templates/upload_logged.swig new file mode 100644 index 0000000..44b6393 --- /dev/null +++ b/templates/upload_logged.swig @@ -0,0 +1,21 @@ +{% extends "layout.swig" %} + +{% block menu %} +<li>❌ <a href="//wandystan.eu/w/action,logout">wyloguj</a></li> +{% endblock %} + +{% block body %} +<h1>{{siteName}}</h1> +<p>Maksymalny rozmiar plików to {{max_upload_size}} MiB</a></p> +{% block form %} +<form id="upload-form" enctype="multipart/form-data" method="post" action="upload.php?output=html"> + <p> + <button id="upload-btn" type="button">Wybierz lub upuść plik(i)</button> + <input type="file" id="upload-input" name="files[]" multiple data-max-size="{{max_upload_size}}MiB"> + <input type="submit" value="Wyślij"> + </p> +</form> +<ul id="upload-filelist"></ul> +<script src="pomf.min.js"></script> +{% endblock %} +{% endblock %} diff --git a/templates/upload_unlogged.swig b/templates/upload_unlogged.swig new file mode 100644 index 0000000..bb7a384 --- /dev/null +++ b/templates/upload_unlogged.swig @@ -0,0 +1,10 @@ +{% extends "upload_logged.swig" %} + +{% block menu %} +<li>∗ <a href="//wandystan.eu/w/action,registration">zarejestruj</a></li> +<li>∗ <a href="//wandystan.eu/w/wlezie">zaloguj</a></li> +{% endblock %} + +{% block form %} +<p><button id="upload-btn" type="button" disabled>Zaloguj się aby wysyłać pliki</button></p> +{% endblock %} |
