From 8a0d859a4a2a0b84fb32c5b6d4226a943c1c091e Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Sun, 29 Dec 2024 23:50:11 +0100 Subject: [PATCH] Add flash emulation with ruffle --- .../apps/templates/sites/submission.html | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/archivist/apps/templates/sites/submission.html b/archivist/apps/templates/sites/submission.html index aacb885..b1506db 100644 --- a/archivist/apps/templates/sites/submission.html +++ b/archivist/apps/templates/sites/submission.html @@ -41,6 +41,8 @@ {% if submission.content_object.files.all|length == 1 %} + {% if submission.content_object.files.first.file_mime|is_flash %} +
{% elif submission.content_object.files.first.file_mime|is_image %} {% endblock content %} + +{% block scripts %} + +{% if submission.content_object.files.first.file_mime|is_flash or submission.content_object.file != None %} + + +{% endif %} + +{% endblock scripts %}