Rearrange mimetype-icon dict for clarity

This commit is contained in:
voussoir 2017-03-03 22:50:36 -08:00
parent fd914051aa
commit 92880ba3eb
2 changed files with 8 additions and 3 deletions

View file

@ -120,6 +120,7 @@ ADDITIONAL_MIMETYPES = {
'mkv': 'video/x-matroska', 'mkv': 'video/x-matroska',
'ass': 'text/plain',
'srt': 'text/plain', 'srt': 'text/plain',
} }

View file

@ -1,12 +1,16 @@
{# Specific extensions, then specific mimetypes, then general mimtypes #}
{% set thumbnails = {% set thumbnails =
{ {
"audio": "audio", "svg": "svg",
"application/zip": "archive", "application/zip": "archive",
"application/x-tar": "archive", "application/x-tar": "archive",
"archive": "archive", "archive": "archive",
"txt": "txt", "audio": "audio",
"svg": "svg",
"video": "video", "video": "video",
"text": "txt",
} }
%} %}
{% macro create_photo_card(photo, view="grid") %} {% macro create_photo_card(photo, view="grid") %}