From 3b0094b6f58de5a701be148d3bac091a9627cb76 Mon Sep 17 00:00:00 2001 From: fireworks88 Date: Sun, 5 Sep 2021 22:38:11 +0200 Subject: [PATCH] display vids in card view --- files/templates/submission_listing.html | 26 ++++++++++++------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 1bd8bc397..2b6cdb1f7 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -216,20 +216,18 @@ -{% if not v or v.cardview %} - {% if p.is_image %} -
- - Unable to load image - -
- {% elif p.is_video %} -
- -
- {% endif %} +{% if p.is_image and not (v and not v.cardview) %} +
+ + Unable to load image + +
+{% elif p.is_video %} +
+ +
{% endif %} {% if p.realbody(v) %}