diff options
| author | pantsucat <contact@pantsu.cat> | 2015-09-17 12:36:43 +0200 |
|---|---|---|
| committer | pantsucat <contact@pantsu.cat> | 2015-09-17 12:36:43 +0200 |
| commit | 7b11fd88b488fd70be76129c1c57e999f00a2567 (patch) | |
| tree | 98ebbfc2b7fe29e53251d45bbba78b91b4060421 /pages | |
| parent | 66b973455fa0f64d471e74d6592f6b45375c3e4d (diff) | |
Add a version of the site without JavaScript
Diffstat (limited to 'pages')
| -rw-r--r-- | pages/nojs.swig | 15 | ||||
| -rw-r--r-- | pages/upload_form_nojs.swig | 6 |
2 files changed, 21 insertions, 0 deletions
diff --git a/pages/nojs.swig b/pages/nojs.swig new file mode 100644 index 0000000..c526688 --- /dev/null +++ b/pages/nojs.swig @@ -0,0 +1,15 @@ +{% extends "layout.swig" %} + +{% block body %} +<div class="jumbotron"> + <header> + <h1>Pantsu~</h1> + <p lang="ca">Ropa Interior~</p> + </header> + <p class="lead">Max upload size is {{max_upload_size}}MiB, read the <a href="faq.html">FAQ</a></p> + {% include "check_fileapi.swig" %} + {% include "upload_form_nojs.swig" %} +</div> +{% include "banners.swig" %} +{% include "nav.swig" %} +{% endblock %} diff --git a/pages/upload_form_nojs.swig b/pages/upload_form_nojs.swig new file mode 100644 index 0000000..323fc0e --- /dev/null +++ b/pages/upload_form_nojs.swig @@ -0,0 +1,6 @@ +<form enctype="multipart/form-data" method="post" action="upload.php"> + <input type="file" name="files[]" multiple data-max-size="{{max_upload_size}}MiB"> + <br> + <input type="submit" value="Submit"> +</form> +<ul id="upload-filelist"></ul> |
