diff options
| author | jvoisin | 2018-11-15 16:03:12 +0100 |
|---|---|---|
| committer | jvoisin | 2018-12-09 18:59:23 +0100 |
| commit | 3231047c1475c9e500a0e5f92ea129fccef8dd28 (patch) | |
| tree | 6aab8a78909887b36cdcfb089cf557a043f25875 /templates/download.html | |
| parent | 60aa7f879e16e4ae329c099eecffd97547b39a07 (diff) | |
Second commit
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 | |||
