From 2ccc96a002e28e6c9ba8e92e72dc2166da36061a Mon Sep 17 00:00:00 2001 From: kek7198 Date: Tue, 28 Dec 2021 18:36:10 -0600 Subject: [PATCH 01/25] fix --- .../CHRISTMAS/submission_listing.html | 25 ++++++++----------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/files/templates/CHRISTMAS/submission_listing.html b/files/templates/CHRISTMAS/submission_listing.html index d9ad4dfb3..64111fd19 100644 --- a/files/templates/CHRISTMAS/submission_listing.html +++ b/files/templates/CHRISTMAS/submission_listing.html @@ -270,9 +270,13 @@ - {% elif (p.url and p.url.lower().endswith('.mp4')) or (p.embed_url and "youtu" in p.domain) or (p.url and "streamable.com/e/" in p.url) %} + {% elif p.is_video %} + + {% elif p.is_youtube %} {% else %} @@ -305,18 +309,9 @@ - {% elif p.embed_url and "youtu" in p.domain %} -
- {% if 'lite' in p.embed_url %} - {{p.embed_url | safe}} - {% else %} - - {% endif %} -
- {% elif p.url and "streamable.com/e/" in p.url %} -
- + {% elif p.is_youtube %} +
+ {{p.embed_url | safe}}
{% endif %} {% endif %} @@ -393,7 +388,7 @@ {% include "CHRISTMAS/expanded_image_modal.html" %} - +