From 512fb6d72f897e688143dee13ae5fd6b87cb4791 Mon Sep 17 00:00:00 2001 From: Mandragorat Wandystanu Date: Sat, 18 Nov 2017 01:26:16 +0100 Subject: New site layout. --- Makefile | 12 +- dist.json | 6 +- static/css/pomf.css | 571 +++++++++++------------------------ static/img/bg.png | Bin 19452 -> 0 bytes static/img/bitcoin.png | Bin 1825 -> 0 bytes static/img/donate.png | Bin 1098 -> 0 bytes static/img/flattr.png | Bin 1026 -> 0 bytes static/img/paypal.png | Bin 689 -> 0 bytes static/js/app.js | 2 +- static/php/index.php | 12 + templates/404.swig | 12 + templates/banners.swig | 3 - templates/banners/donations.swig | 23 -- templates/banners/malware_scans.swig | 3 - templates/faq.swig | 27 -- templates/index.swig | 11 - templates/layout.swig | 37 ++- templates/nav.swig | 9 - templates/tools.swig | 74 ----- templates/upload_form.swig | 6 - templates/upload_logged.swig | 21 ++ templates/upload_unlogged.swig | 10 + 22 files changed, 268 insertions(+), 571 deletions(-) delete mode 100644 static/img/bg.png delete mode 100644 static/img/bitcoin.png delete mode 100644 static/img/donate.png delete mode 100644 static/img/flattr.png delete mode 100644 static/img/paypal.png create mode 100644 static/php/index.php create mode 100644 templates/404.swig delete mode 100644 templates/banners.swig delete mode 100644 templates/banners/donations.swig delete mode 100644 templates/banners/malware_scans.swig delete mode 100644 templates/faq.swig delete mode 100644 templates/index.swig delete mode 100644 templates/nav.swig delete mode 100644 templates/tools.swig delete mode 100644 templates/upload_form.swig create mode 100644 templates/upload_logged.swig create mode 100644 templates/upload_unlogged.swig diff --git a/Makefile b/Makefile index 95beb41..d0e84fb 100644 --- a/Makefile +++ b/Makefile @@ -12,14 +12,14 @@ MODULES="php" all: builddirs npm_dependencies swig htmlmin min-css min-js copy-img submodules swig: - $(NODE) node_modules/swig/bin/swig.js render -j dist.json templates/faq.swig > $(CURDIR)/build/faq.html - $(NODE) node_modules/swig/bin/swig.js render -j dist.json templates/index.swig > $(CURDIR)/build/index.html - $(NODE) node_modules/swig/bin/swig.js render -j dist.json templates/tools.swig > $(CURDIR)/build/tools.html + $(NODE) node_modules/swig/bin/swig.js render -j dist.json templates/upload_logged.swig > $(CURDIR)/build/upload_logged.html + $(NODE) node_modules/swig/bin/swig.js render -j dist.json templates/upload_unlogged.swig > $(CURDIR)/build/upload_unlogged.html + $(NODE) node_modules/swig/bin/swig.js render -j dist.json templates/404.swig > $(CURDIR)/build/404.html htmlmin: - $(NODE) node_modules/htmlmin/bin/htmlmin $(CURDIR)/build/index.html -o $(CURDIR)/build/index.html - $(NODE) node_modules/htmlmin/bin/htmlmin $(CURDIR)/build/faq.html -o $(CURDIR)/build/faq.html - $(NODE) node_modules/htmlmin/bin/htmlmin $(CURDIR)/build/tools.html -o $(CURDIR)/build/tools.html + $(NODE) node_modules/htmlmin/bin/htmlmin $(CURDIR)/build/upload_logged.html -o $(CURDIR)/build/upload_logged.html + $(NODE) node_modules/htmlmin/bin/htmlmin $(CURDIR)/build/upload_unlogged.html -o $(CURDIR)/build/upload_unlogged.html + $(NODE) node_modules/htmlmin/bin/htmlmin $(CURDIR)/build/404.html -o $(CURDIR)/build/404.html installdirs: mkdir -p $(DESTDIR)/ $(DESTDIR)/img diff --git a/dist.json b/dist.json index 6763a7c..cd16521 100644 --- a/dist.json +++ b/dist.json @@ -4,7 +4,7 @@ }, "dest": "dist", "pkgVersion": "<%= pkg.version %>", - "banners": [ + "banners_comment": [ "banners/malware_scans.swig", "banners/donations.swig" ], @@ -17,8 +17,8 @@ "generateSitemap": false, "max_upload_size": 128, "production": false, - "siteName": "Pomf", - "siteUrl": "http://example.com", + "siteName": "Państwowy Ośrodek Magazynowania Faksymili", + "siteUrl": "http://pomf.wandystan.eu", "abuseContact": "abuse@example.com", "infoContact": "info@example.com", "paypalUrl": "", diff --git a/static/css/pomf.css b/static/css/pomf.css index 0fde3b1..c99005a 100644 --- a/static/css/pomf.css +++ b/static/css/pomf.css @@ -1,397 +1,188 @@ -/** - * Copyright (c) 2011, 2012, 2013 Twitter, Inc. - * Copyright (c) 2013, 2014 Peter Lejeck - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -/** - * USE BORDER BOX - */ -*, -*:before, -*:after { - box-sizing: border-box; -} - -/** - * PAGE LAYOUT - */ +/* styl resetujący */ +html, body, div, span, applet, object, iframe, +h1, h2, h3, h4, h5, h6, p, blockquote, pre, +a, abbr, acronym, address, big, cite, code, +del, dfn, em, font, img, ins, kbd, q, s, samp, +small, strike, strong, sub, sup, tt, var, +b, u, i, center, +dl, dt, dd, menu, ol, ul, li, +fieldset, form, label, legend, +table, caption, tbody, tfoot, thead, tr, th, td { + margin: 0; + padding: 0; + border: 0; + outline: 0; + font-size: 100%; + vertical-align: baseline; + background: transparent; +} + body { - background-attachment: fixed; - background-color: #F7F7F7; - background-image: url('img/bg.png'); - background-position: top left; - background-repeat: repeat; - color: #333; - font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; - font-size: 14px; - height: 100%; - line-height: 20px; - margin: 0; - padding-top: 20px; - padding-bottom: 40px; -} -.container { - margin: 0 auto; - max-width: 700px; -} - -/** - * ELEMENTS - */ -/* paragraphs */ + line-height: 1; +} + +ol, ul { + list-style: none; +} + +blockquote, q { + quotes: none; +} + +:focus { + outline: 0; +} + +ins { + text-decoration: none; +} + +del { + text-decoration: line-through; +} + +table { + border-collapse: collapse; + border-spacing: 0; +} + +/* layout */ +html { + background: white; + color: black; +} + +body { + max-width: 800px; + margin: 0 auto; + padding: 0 1.6%; + font-family: sans-serif; + line-height: 1.5em; +} + +article { + margin: 5em 0; + text-align: center; +} + +footer { + text-align: center; + font-size: .75em; +} + +/* nagłówki i akapity */ +h1 { + margin: 0.67em 0.34em; + font-size: 2.00em; + font-weight: normal; +} + +h1 + p { + margin: -.415em .57em .83em .57em; + font-size: 1.17em; + font-weight: lighter; +} + p { - margin: 0 0 10px; -} -/* images */ -input[type=image], img { - vertical-align: middle; -} -/* links */ -a { - color: #0078B4; - text-decoration: none; - transition: color 0.25s; -} -a:hover, -a:focus, -a:active { - color: #005580; -} -a:focus { - outline: thin dotted #333; -} - -/** - * JUMBOTRON - */ -.jumbotron { - margin: 60px 0; - text-align: center; - transition: width 0.5s, height 0.5s, margin 0.5s, padding 0.5s; -} -.jumbotron h1 { - color: inherit; - font-family: inherit; - font-size: 72px; - font-weight: bold; - line-height: 1; - margin: 10px 0; - cursor: default; - text-rendering: optimizelegibility; -} -.jumbotron .lead { - font-size: 21px; - font-weight: 200; - line-height: 30px; - margin-bottom: 20px; - transition: font-size 0.5s; -} -.jumbotron .btn { - background: rgba(202, 230, 190, 0.75); - border: 1px solid #B7D1A0; - border-radius: 4px; - color: #468847; - cursor: pointer; - display: inline-block; - font-size: 24px; - padding: 28px 48px; - text-shadow: 0 1px rgba(255, 255, 255, 0.5); - transition: background-color 0.25s, width 0.5s, height 0.5s; -} -.jumbotron .btn:hover, -.jumbotron .btn:active, -.jumbotron .btn:focus, -.jumbotron .btn.drop { - background-color: rgb(188, 228, 170); - text-decoration: none; -} - -/** - * BOXES - */ -.alert { - background-color: #FCF8E3; - border: 1px solid #FBEED5; - border-radius: 4px; - margin-bottom: 20px; - padding: 8px 14px; - text-shadow: 0px 1px rgba(255, 255, 255, 0.5); - transition: width 0.5s, margin 0.5s, padding 0.5s, background-color 0.5s; -} -.alert-error { - background-color: #F2DEDE; - border-color: #EED3D7; - color: #AA4342; -} -.alert-info { - background-color: #D9EDF7; - border-color: #BCE8F1; - color: #167196; -} - -/** - * DONATION BUTTONS - */ -span.donate-btns { - display: block; - text-align: center; - margin: 11px 0 3px; -} -a.donate-btn { - height: 26px; - display: inline-block; - margin: 2px 5px; - background: hsl(0, 0%, 95%); - line-height: 16px; - padding: 3px 8px 3px 24px; - border-radius: 3px; - color: hsl(0, 0%, 25%); - border: 1px solid hsl(0, 0%, 85%); - transition: all .2s; -} -a.donate-btn:hover { - color: #000; - border: 1px solid hsl(0, 0%, 70%); - background-color: hsl(0, 0%, 80%); -} -.icon { - display: block; - height: 16px; - width: 16px; - float: left; - margin-left: -20px; - margin-top: 1px; -} -.icon-paypal { - background-image: url('img/paypal.png'); -} -.icon-bitcoin { - background-image: url('img/bitcoin.png'); -} -.icon-flattr { - background-image: url('img/flattr.png'); -} - -/** - * NAVIGATION LINKS - */ -nav > ul, -nav a { - color: #33799B; - list-style: none; - margin: 0; - padding: 0; - text-align: center; -} -nav > ul > li { - display: inline-block; - margin: 0; - padding: 0; - cursor: default; -} -nav > ul > li:after { - content: "|"; - margin: 0 8px; - opacity: 0.3; -} -nav > ul > li:last-child:after { - content: ""; - margin: 0; -} - - - -/** - * UPLOAD FILE LIST - */ -#upload-filelist { - list-style-type: none; - margin: 20px 50px; - padding: 0; - text-align: left; -} -.error#upload-filelist { - color: #891A18; -} -button.upload-clipboard-btn { - height: 16px; -} -.error#upload-filelist .progress-percent { - color: #B94A48; -} -.error#upload-filelist .file-progress { - display: none; -} -#upload-filelist > li { - margin-top: 5px; - overflow: hidden; -} -#upload-filelist > li.total { - border-top: 1px solid rgba(0, 0, 0, 0.05); - font-weight: bold; - padding-top: 5px; -} -.file-name { - float: left; - overflow: hidden; - max-width: 70%; - text-overflow: ellipsis; - white-space: nowrap; -} -.file-progress, -.file-url { - display: inline-block; - float: right; - font-size: 0.9em; - margin-left: 8px; - vertical-align: middle; -} -.file-url a { - color: #5C5C5C; -} -.file-url a:hover { - color: #1C1C1C; -} -.progress-percent { - float: right; -} - -progress[value] { - /* Reset the default appearance */ - -webkit-appearance: none; - -moz-appearance: none; - appearance: none; - - border: none; - -} - -progress[value]::-webkit-progress-bar { - background-color: #eee; - border-radius: 2px; - box-shadow: 0 2px 5px rgba(0,0,0,0.25) inset; -} - -/* completed rows */ -.completed .file-progress, -.completed .progress-percent { - display: none; -} -.completed .file-url { - display: block; -} - -/** - * PROGRESS BARS - */ -.progress-outer { - background-color: rgba(255, 255, 255, 0.8); - border: 1px solid white; - border-radius: 4px; - box-shadow: 0 0 0 1px black; - color: transparent; - display: inline-block; - font-size: 0; - float: right; - height: 8px; - margin: 6px 6px 0; - overflow: hidden; - vertical-align: middle; - width: 50px; -} -.progress-inner { - background-color: black; - height: 6px; - margin: 0; - width: 0; -} - -/** - * MEDIA QUERIES - */ -@media only screen and (max-device-width: 320px), only screen and (max-width: 400px) { - body { - padding: 10px 0 0 0; - } - .jumbotron { - margin: 20px 0 30px; - } - .jumbotron .lead { - font-size: 18px; - } - .jumbotron .btn, .alert, #upload-filelist { - border-radius: 0; - border-width: 1px 0; - width: 100%; - margin-left: 0; - margin-right: 0; - padding-left: 20px; - padding-right: 20px; - } - #upload-filelist { - background-color: rgba(255, 255, 255, 0.75); - overflow: hidden; - } - #upload-filelist > li.file { - margin-top: 12px; - margin-bottom: 12px; - } - .file-progress { - width: 70%; - } - .file-name, .file-url { - width: 100%; - max-width: 100%; - } - .file-url a { - text-decoration: underline; - margin-left: 15px; - } - .file-url a:before { - content: "http://"; - } - .alert { - font-size: 13px; - } - .alert-error { - background-color: rgba(248, 223, 223, 0.75); - } - nav { - background-color: rgba(255, 255, 255, 0.75); - border: #FFFFFF; - padding: 10px 0; - } -} -/* - * no js - */ + margin: 1.12em .67em; +} + +/* linki */ +a:link { + text-decoration: none; + color: #E20800; +} + +a:visited { + text-decoration: none; + color: #A3007B; + +} + +a:hover { + text-decoration: underline; +} + +/* menu górne */ +menu { + margin: 1.50em 0.81em; + list-style: none; + text-align: right; + font-size: .83em; +} + +menu li { + display: inline; +} + +menu li:after { + content: ' | '; + color: #ddd; +} + +menu li:first-child:after, +menu li:last-child:after { + content: ''; +} + +menu li:first-child { + float: left; + font-size: 1.41em; +} + +menu li:first-child strong { + font-weight: normal; +} + +/* style formularza uploadu */ #upload-btn { - display: none; + padding: 1em 2em; + font-size: 1.5em; +} + +#upload-btn:not([disabled]) { + cursor: pointer; } -.js #upload-input { - display: none; + +#upload-filelist { + list-style: none; + margin: 1.25em .75em; + text-align: right; + font-size: .9em; } -.js input[type="submit"]{ - display: none; + +#upload-filelist li { + height: 2em; + line-height: 2em; } -.js #upload-btn { - display: inline-block !important; + +#upload-filelist .file-name { + float: left; +} + +#upload-filelist progress { + margin-left: .45ex; +} + +#upload-filelist button { + margin-left: .45ex; + height: 100%; + vertical-align: middle; +} + +#upload-filelist button img { + height: 100%; +} + +/* style zależne od JavaScript */ +#upload-form #upload-btn { + display: none; +} + +#upload-form.js #upload-btn { + display: inline-block; +} + +#upload-form.js input { + display: none; } diff --git a/static/img/bg.png b/static/img/bg.png deleted file mode 100644 index 2f4febc..0000000 Binary files a/static/img/bg.png and /dev/null differ diff --git a/static/img/bitcoin.png b/static/img/bitcoin.png deleted file mode 100644 index 85e491b..0000000 Binary files a/static/img/bitcoin.png and /dev/null differ diff --git a/static/img/donate.png b/static/img/donate.png deleted file mode 100644 index 2132a83..0000000 Binary files a/static/img/donate.png and /dev/null differ diff --git a/static/img/flattr.png b/static/img/flattr.png deleted file mode 100644 index 7205695..0000000 Binary files a/static/img/flattr.png and /dev/null differ diff --git a/static/img/paypal.png b/static/img/paypal.png deleted file mode 100644 index dd8da81..0000000 Binary files a/static/img/paypal.png and /dev/null differ diff --git a/static/js/app.js b/static/js/app.js index 8f4146f..ed894d9 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -44,8 +44,8 @@ document.addEventListener('DOMContentLoaded', function() { progressBar.setAttribute('value', '0'); row.appendChild(name); - row.appendChild(progressBar); row.appendChild(progressIndicator); + row.appendChild(progressBar); document.getElementById('upload-filelist').appendChild(row); return row; diff --git a/static/php/index.php b/static/php/index.php new file mode 100644 index 0000000..c06d77d --- /dev/null +++ b/static/php/index.php @@ -0,0 +1,12 @@ +isLoggedIn()) { + include 'upload_logged.html'; +} else { + include 'upload_unlogged.html'; +} 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 %} +
  • ⮬ wyślij plik
  • +{% endblock %} + +{% block body %} +

    Błąd 404

    +

    Nie znaleziono pliku którego szukasz

    +{% 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 @@ -

    - {{siteName}} is free to use, but our hosting costs are far from it — donations are what keep {{siteName}} alive, free, and fast. - -

    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 @@ -

    - Malware scans are run daily — files identified as malware will be removed without further notice. -

    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 %} -
    -
    -

    FAQ

    -
    -

    What is {{siteName}}?

    -

    {{siteName}} is a simple to use free file hosting service. It lets you share your photos, documents, music, videos and more with others online.

    -

    What works are allowed?

    -

    {{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.

    -

    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.

    -

    Do you keep logs of uploaded works?

    -

    We don't collect or log any data of our users in respect for privacy. We only have files uploaded by our users.

    -

    Can you remove my copyrighted work?

    -

    Please submit your copyright takedown notice to {{abuseContact}}. 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).

    -

    Can you remove works that are defaming me or otherwise infringing my non-copyright rights?

    -

    {{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 {{abuseContact}}.

    -

    Can you remove illegal works?

    -

    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. You must contact the appropriate law enforcement office. They may then contact us if appropriate.

    -

    If you are an Australian law enforcement official and you need our assistance, please contact {{abuseContact}}. 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.

    -

    I have a question...

    -

    Send us an email at {{infoContact}} and let's talk!

    -
    -{% 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 %} -
    -

    {{siteName}}~

    -

    Max upload size is {{max_upload_size}} MiB, read the FAQ

    - {% include "upload_form.swig" %} -
    -{% 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 @@ - - - - - - {{siteName}} · {% block title %}Kawaii File Hosting{% endblock %} - - - - - -
    - {% block body %}What the fuck are you doing here, baka?{% endblock %} -
    - + + + + + + + {{siteName}} − {% block title %}wandejski uploader plików{% endblock %} + + +
    + +
  • Mandragorat Wandystanu
  • + {% block menu %}
  • elementy menu
  • {% endblock %} +
    +
    +
    + {% block body %}

    Co tu robisz, пиздец?

    {% endblock %} +
    + + 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 @@ - 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 %} -
    -

    Pomf Tools

    -
    -
    -

    pomfload

    -
    -
    Download
    -
    https://github.com/ewhal/pomfload
    -
    Contact
    -
    https://twitter.com/AnonymousLink
    -
    -
    -
    -

    limf

    -
    -
    Download
    -
    https://github.com/lich/limf
    -
    Contact
    -
    http://lich.github.io/
    -
    -
    -
    -

    1339secure

    -
    -
    Download
    -
    https://github.com/AdrianKoshka/1339secure
    -
    Contact
    -
    adriankoshcha@teknik.io
    -
    -
    -
    -

    ShareX

    -
    -
    Download
    -
    https://getsharex.com
    -
    Source
    -
    https://github.com/ShareX/ShareX
    -
    Contact
    -
    #ShareX on irc.freenode.net
    -
    -
    -
    -

    Gyazowin

    -
    -
    Download
    -
    https://github.com/avail/gyazowin
    -
    Contact
    -
    https://twitter.com/4vail
    -
    -
    -
    -

    Pomfshare

    -
    -
    Download
    -
    https://github.com/Nyubis/Pomfshare
    -
    Contact
    -
    https://github.com/Nyubis
    -
    -
    -
    -

    Pomf Rehost

    -
    -
    Download
    -
    https://git.fuwafuwa.moe/lesderid/pomf-rehost
    -
    Contact
    -
    les@fuwafuwa.moe
    -
    -
    -{% 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 @@ -
    - - - -
    - 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 %} +
  • ❌ wyloguj
  • +{% endblock %} + +{% block body %} +

    {{siteName}}

    +

    Maksymalny rozmiar plików to {{max_upload_size}} MiB

    +{% block form %} +
    +

    + + + +

    +
    + + +{% 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 %} +
  • ∗ zarejestruj
  • +
  • ∗ zaloguj
  • +{% endblock %} + +{% block form %} +

    +{% endblock %} -- cgit v1.2.3