From 9b55a2d06507f358338c6ea20077b74efe4ca386 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 7 Sep 2021 00:27:56 +0200 Subject: [PATCH] fd --- files/templates/settings_profile.html | 2 +- files/templates/submission_listing.html | 44 +++++++++++++------------ 2 files changed, 24 insertions(+), 22 deletions(-) diff --git a/files/templates/settings_profile.html b/files/templates/settings_profile.html index 77fe31c86a..50a3b9b15e 100644 --- a/files/templates/settings_profile.html +++ b/files/templates/settings_profile.html @@ -58,7 +58,7 @@ - Enable if you would like to display images in full size in the frontpage. + Enable if you would like to display images and videos in full size on the frontpage. diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 46675602bf..2579ba67db 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -389,28 +389,30 @@ {% endif %} -{% if p.is_image and (not v or v.cardview) %} -
- - Unable to load image - -
-{% elif p.is_video %} - -
- +{% if not v or v.cardview %} + {% if p.is_image %} + - -{% elif p.embed_url and "youtu" in p.domain %} -
- -
-{% elif p.url and "streamable.com/e/" in p.url %} -
- -
+ {% elif p.is_video %} + +
+ +
+
+ {% elif p.embed_url and "youtu" in p.domain %} +
+ +
+ {% elif p.url and "streamable.com/e/" in p.url %} +
+ +
+ {% endif %} {% endif %} {% else %}