From 81780062aea2f9de8dd704de1da7743937b79c38 Mon Sep 17 00:00:00 2001 From: Jfriedli Date: Thu, 18 Mar 2021 11:35:04 +0100 Subject: started refactoring index and download page --- templates/base.html | 60 ++++++++++++----------- templates/download.html | 125 +++++++++++++++++++++++++++--------------------- templates/index.html | 42 ++++++++-------- 3 files changed, 125 insertions(+), 102 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index 17c28f2..576f264 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,39 +1,45 @@ - - MAT2 - - - - - {% assets 'css' %} - - {% endassets %} - + + + MAT2 + + + + + {% assets 'css' %} + + {% endassets %} + +
- mat2 logo + mat2 logo
-
-
- {% with messages = get_flashed_messages() %} - {% if messages %} - {% for message in messages %} -
-

- {{ message }} -

-
- {% endfor %} - {% endif %} - {% endwith %} + + +
+ {% with messages = get_flashed_messages() %} + {% if messages %} + {% for message in messages %} +
+ + + + + + + {{ message }} +
-
+ {% endfor %} + {% endif %} + {% endwith %} -
{% block content %}{% endblock %}
@@ -42,4 +48,4 @@ source - ♥ - + \ No newline at end of file diff --git a/templates/download.html b/templates/download.html index 8100623..2313d04 100644 --- a/templates/download.html +++ b/templates/download.html @@ -1,69 +1,86 @@ {% extends "base.html" %} {% block content %} -
-

Metadata removed

- {% if not meta_after %} -

+

+
+
+ {% if not meta_after %} +
+

Metadata removed

+
+

Successfully removed the metadata + + +

- {% endif %} -
-
- - - + {% endif %} + + {% if meta_after %} +
+

Metadata partially removed

-
+

+ Could not remove all the metadata + + + +

+ {% endif %} -

- {% if meta_after %} -

-

- Could not remove all the metadata -

+ + + +
+
+ {% if meta_after %} +
+
+ +
+

Remaining Metadata

-

- Remaining Metadata -

-
+
+ + + + + + {% for key, value in meta_after.items() %} -
+
+ + + {% 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! -

+
+
+ Key + + Value +
{{ key }} - -
+
{{ value }} - +
- {% endif %}
- -{% endblock %} - + {% endif %} +
+{% endblock %} \ No newline at end of file diff --git a/templates/index.html b/templates/index.html index 008f5f3..f0268f3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,26 +1,26 @@ {% extends "base.html" %} {% block content %} -
-
-
-
Remove Metadata
-

+

+
+
+
Remove Metadata
+

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

-
-
-
- - -
-
-
+
+
+
+ + +
+
- -{% endblock %} +
+ +{% endblock %} \ No newline at end of file -- cgit v1.3