diff --git a/src/formatters/templates/html_template.html b/src/formatters/templates/html_template.html index 47cceae..3d99a41 100644 --- a/src/formatters/templates/html_template.html +++ b/src/formatters/templates/html_template.html @@ -29,6 +29,7 @@ margin: auto; border: 1px solid; border-collapse: collapse; + vertical-align:top; } table.metadata td:first-child { @@ -120,6 +121,7 @@

{{ prop }}: +

{% for subprop in m.properties[prop] %} {% if subprop | is_media %} @@ -139,7 +141,7 @@ - {{ macros.display_media(m) }} + {{ macros.display_media(m, true) }} {% endfor %} diff --git a/src/formatters/templates/media.html b/src/formatters/templates/media.html index 6ee2502..db071cf 100644 --- a/src/formatters/templates/media.html +++ b/src/formatters/templates/media.html @@ -1,4 +1,4 @@ -{% macro display_media(m) -%} +{% macro display_media(m, links) -%} {% for url in m.urls %} {% if url | length == 0 %} @@ -22,7 +22,12 @@ No preview available for {{ m.key }}. {% endif %} {% else %} {{ m.url | urlize }} -{% endif %} +{% endif %} +{% if links %} +
+open or +download +{% endif %} {% endfor %} {%- endmacro -%} \ No newline at end of file