From 8a45eb2f5399aaa2a022389086a4afde22b00477 Mon Sep 17 00:00:00 2001 From: Jan Friedli Date: Mon, 13 Apr 2020 22:09:14 +0200 Subject: full redesign --- templates/base.html | 84 ++++++++++++++++++++++++---------------------- templates/download.html | 88 +++++++++++++++++++++++++++++++++---------------- templates/index.html | 26 ++++++++------- 3 files changed, 120 insertions(+), 78 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 66b60d8..6f0f57a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,48 +1,54 @@ - - mat2 - web edition - - - - - - - - + + MAT2 + + + + + + + +
-
-
- - - +
+
+ + + +
-
-
-
- {% with messages = get_flashed_messages() %} - {% if messages %} - - {% endif %} - {% endwith %} -
-
-
- {% block content %}{% endblock %} -
-
+
+
+ {% with messages = get_flashed_messages() %} + {% if messages %} + {% for message in messages %} +
+

+ {{ message }} +

+
+ {% endfor %} + {% endif %} + {% endwith %} +
+
+ +
+
+
+ {% block content %}{% endblock %} +
+
+
- - + + diff --git a/templates/download.html b/templates/download.html index e39b16b..83dd9c4 100644 --- a/templates/download.html +++ b/templates/download.html @@ -1,37 +1,69 @@ {% extends "base.html" %} {% block content %} -

» Metadata removed

-

-{% if not meta_after %} -mat2 managed to remove all metadata from

{{ filename }}
. -{% else %} -mat2 could not remove all the metadata from
{{ filename }}
, those are the remaining ones: - -{%endif %} -

-⇩ Download cleaned file +
+

Metadata removed

+ {% if not meta_after %} +

+ Successfully removed the metadata +

+ {% endif %} + -
-{% if meta %} -

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

-
-
    - {% for key, value in meta.items() %} -
  • {{ key }}: {{ value }}
  • - {% endfor %} -
-
-{% else %} -

Not a single metadata was found by mat2, odds are that your file was already clean!

-{% endif %} +

+ {% if meta_after %} +

+

+ Could not remove all the metadata +

+
+

+ Remaining Metadata +

+
+ {% for key, value in meta_after.items() %} +
+ {{ key }} +
+
+ {{ value }} +
+ {% endfor %} +
+ {% endif %} +

-
+ {% if meta %} +

+ Removed Metadata +

+
+ {% for key, value in meta.items() %} +
+ {{ key }} +
+
+ {{ value }} +
+ {% endfor %} +
+ {% else %} +
+

+ Not a single metadata was found, odds are that your file was already clean! +

+
+ {% endif %} +
{% endblock %} diff --git a/templates/index.html b/templates/index.html index 7f55283..b361394 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,15 +1,19 @@ {% extends "base.html" %} {% block content %} -
-

Remove metadata

-

- The file you see is just the tip of the iceberg. Remove the hidden meta -

-
-
- - +
+

Remove metadata

+

+ The file you see is just the tip of the iceberg. Remove the hidden meta +

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