diff options
Diffstat (limited to 'templates/download.html')
| -rw-r--r-- | templates/download.html | 37 |
1 files changed, 37 insertions, 0 deletions
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 @@ | |||
| 1 | {% extends "base.html" %} | ||
| 2 | |||
| 3 | {% block content %} | ||
| 4 | <h2>» Metadata removed</h2> | ||
| 5 | <p> | ||
| 6 | {% if not meta_after %} | ||
| 7 | mat2 managed to remove <b>all metadata</b> from your file. | ||
| 8 | {% else %} | ||
| 9 | mat2 <b>could not</b> remove all the metadata from your file, those are the remaining ones: | ||
| 10 | <ul> | ||
| 11 | {% for key, value in meta_after.items() %} | ||
| 12 | <li> <b>{{ key }}</b>: {{ value }}</li> | ||
| 13 | {% endfor %} | ||
| 14 | </ul> | ||
| 15 | {%endif %} | ||
| 16 | </p> | ||
| 17 | <a class="button button-primary" href='{{ url_for('download_file', filename=filename) }}'>⇩ Download cleaned file</a> | ||
| 18 | |||
| 19 | <hr/> | ||
| 20 | |||
| 21 | {% if meta %} | ||
| 22 | <p>Just for fun, those are the metadata that mat2 detected in your file, before cleanup.</p> | ||
| 23 | <div class='b'> | ||
| 24 | <ul> | ||
| 25 | {% for key, value in meta.items() %} | ||
| 26 | <li>{{ key }}: <i>{{ value }}</i></li> | ||
| 27 | {% endfor %} | ||
| 28 | </ul> | ||
| 29 | </div> | ||
| 30 | {% else %} | ||
| 31 | meh | ||
| 32 | {% endif %} | ||
| 33 | |||
| 34 | <hr/> | ||
| 35 | |||
| 36 | {% endblock %} | ||
| 37 | |||
