aboutsummaryrefslogtreecommitdiffstats
path: root/shareit/templates
diff options
context:
space:
mode:
authorVG <vg@devys.org>2015-01-28 18:45:29 +0100
committerVG <vg@devys.org>2015-01-28 18:45:29 +0100
commit12240fb74c0c6f2768e1070f849cd265ea3dd181 (patch)
tree6f5cb93e0e020bd918e015aba164e90db1fd0739 /shareit/templates
downloadshareit-12240fb74c0c6f2768e1070f849cd265ea3dd181.tar.gz
shareit-12240fb74c0c6f2768e1070f849cd265ea3dd181.tar.bz2
shareit-12240fb74c0c6f2768e1070f849cd265ea3dd181.zip
First commit
Diffstat (limited to 'shareit/templates')
-rw-r--r--shareit/templates/base.html12
-rw-r--r--shareit/templates/propose_upload.html21
-rw-r--r--shareit/templates/upload.html33
3 files changed, 66 insertions, 0 deletions
diff --git a/shareit/templates/base.html b/shareit/templates/base.html
new file mode 100644
index 0000000..85e840f
--- /dev/null
+++ b/shareit/templates/base.html
@@ -0,0 +1,12 @@
+<!doctype html>
+<html>
+<head>
+ <title>{% block title %}Home{% endblock %} - Shareit</title>
+ <link rel="icon" sizes="256 128 64 32 16" href="/favicon.ico" />
+ <link rel="icon" type="image/x-icon" href="/favicon.ico" />
+ <link rel="icon" href="/favicon.ico" />
+</head>
+<body>
+ {% block content %}{% endblock %}
+</body>
+</html>
diff --git a/shareit/templates/propose_upload.html b/shareit/templates/propose_upload.html
new file mode 100644
index 0000000..c3c8bb9
--- /dev/null
+++ b/shareit/templates/propose_upload.html
@@ -0,0 +1,21 @@
+{% extends "base.html" %}
+{% block title %}
+{% if lang == 'en' %}Upload{% else %}Dépôt{% endif %}
+{% endblock %}
+{% block content %}
+<form action="/upload/" method="post" enctype="multipart/form-data">
+
+<p>
+ {% if lang == 'en' %}
+ <label for="browse_file">Select your file:</label>
+ {% else %}
+ <label for="browse_file">Sélectionnez votre fichier:</label>
+ {% endif %}
+
+ <input type="file" id="browse_file" name="upload" />
+
+ <input type="submit" />
+</p>
+
+</form>
+{% endblock content %}
diff --git a/shareit/templates/upload.html b/shareit/templates/upload.html
new file mode 100644
index 0000000..5d9fb31
--- /dev/null
+++ b/shareit/templates/upload.html
@@ -0,0 +1,33 @@
+{% extends "base.html" %}
+{% block title
+%}{% if lang == 'en'
+ %}Correctly uploaded{%
+else
+ %}Téléchargé correctement{%
+endif %}{% endblock %}
+{% block content %}
+{% if lang == 'en' %}
+<p>
+ Your file was correctly uploaded. <br />
+ It will be available for 10 days. <br />
+ To share it with others, use this link:
+ <a href="{{link}}" >{{link}}</a> <br />
+ You can check the integrity of your download with the md5 hash: {{digest}}
+</p>
+<p>
+ <a href="/">Go back to the upload form</a>
+</p>
+{% else %}
+<p>
+ Votre fichier a correctement été enregistré sur le serveur. <br />
+ Il sera disponible pendant 10 jours. <br />
+ Pour le partager avec d'autres personnes, utilisez ce lien:
+ <a href="{{link}}" >{{link}}</a> <br />
+ Vous pouvez vérifier l'intégrité de votre téléchargement via la somme md5
+ suivante: {{digest}}
+</p>
+<p>
+ <a href="/">Revenir sur le formulaire d'envoi de fichiers</a>
+</p>
+{% endif %}
+{% endblock %}