From 3231047c1475c9e500a0e5f92ea129fccef8dd28 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Thu, 15 Nov 2018 16:03:12 +0100 Subject: Second commit --- templates/base.html | 42 ++++++++++++++++++++++++++++++++++++++++++ templates/download.html | 37 +++++++++++++++++++++++++++++++++++++ templates/index.html | 36 ++++++++++++++++-------------------- 3 files changed, 95 insertions(+), 20 deletions(-) create mode 100644 templates/base.html create mode 100644 templates/download.html (limited to 'templates') diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..3f6e97b --- /dev/null +++ b/templates/base.html @@ -0,0 +1,42 @@ + + + + mat2 - web edition + + + + + + + +
+
+ {% with messages = get_flashed_messages() %} + {% if messages %} + + {% endif %} + {% endwith %} +
+ +
+
+
+ + mat2 logo + +
+
+ {% block content %}{% endblock %} +
+
+ + + diff --git a/templates/download.html b/templates/download.html new file mode 100644 index 0000000..c2b2a42 --- /dev/null +++ b/templates/download.html @@ -0,0 +1,37 @@ +{% extends "base.html" %} + +{% block content %} +

» Metadata removed

+

+{% if not meta_after %} +mat2 managed to remove all metadata from your file. +{% else %} +mat2 could not remove all the metadata from your file, those are the remaining ones: +

+{%endif %} +

+⇩ Download cleaned file + +
+ +{% if meta %} +

Just for fun, those are the metadata that mat2 detected in your file, before cleanup.

+
+ +
+{% else %} +meh +{% endif %} + +
+ +{% endblock %} + diff --git a/templates/index.html b/templates/index.html index 0496c2d..1e05c82 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,20 +1,16 @@ - - - - mat2 - online edition - - - -
-

mat2 - online edition

-
-
-

Remove metadata from your images

-

Drag and drop anywhere you want and get your files cleaned

-
-
- - -
-
- +{% extends "base.html" %} +{% block content %} + +

» Remove metadata

+

+Upload your image, get a cleaned one in response.
+
+ Please note that while we do not keep a copy of your image,
+ there is no way that you could be certain about this: act accordingly. +

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