From 92880ba3eb318b0f0840d0e859c693eba389ff46 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Fri, 3 Mar 2017 22:50:36 -0800 Subject: [PATCH] Rearrange mimetype-icon dict for clarity --- etiquette/constants.py | 1 + templates/photo_card.html | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/etiquette/constants.py b/etiquette/constants.py index 066f02a..e37d773 100644 --- a/etiquette/constants.py +++ b/etiquette/constants.py @@ -120,6 +120,7 @@ ADDITIONAL_MIMETYPES = { 'mkv': 'video/x-matroska', + 'ass': 'text/plain', 'srt': 'text/plain', } diff --git a/templates/photo_card.html b/templates/photo_card.html index 4c39fa7..ed8c68d 100644 --- a/templates/photo_card.html +++ b/templates/photo_card.html @@ -1,12 +1,16 @@ +{# Specific extensions, then specific mimetypes, then general mimtypes #} {% set thumbnails = { - "audio": "audio", + "svg": "svg", + "application/zip": "archive", "application/x-tar": "archive", + "archive": "archive", - "txt": "txt", - "svg": "svg", + "audio": "audio", "video": "video", + "text": "txt", + } %} {% macro create_photo_card(photo, view="grid") %}