From 66d3559988fe919b054a24a35465ca9c1a727059 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 7 Sep 2021 02:43:52 +0200 Subject: [PATCH] fd --- files/templates/default.html | 23 ------------------ files/templates/expanded_video_modal.html | 18 -------------- files/templates/expanded_video_modal2.html | 14 ----------- files/templates/formatting.html | 2 -- files/templates/submission.html | 12 +++++----- files/templates/submission_listing.html | 28 +++++++--------------- 6 files changed, 15 insertions(+), 82 deletions(-) delete mode 100644 files/templates/expanded_video_modal.html delete mode 100644 files/templates/expanded_video_modal2.html diff --git a/files/templates/default.html b/files/templates/default.html index ea5dcba3b..97f069014 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -484,27 +484,6 @@ linkText.textContent = 'View original'; }; - - // Expand Videos on Desktop - - function expandDesktopVideo(video, link) { - - var linkText = document.getElementById("desktop-expanded-video-link"); - var inlineVideo = document.getElementById("desktop-expanded-video"); - - inlineVideo.src = video; - linkText.href = video; - - linkText.textContent = 'View original'; - }; - - function expandDesktopVideo2(video, link) { - - var inlineVideo = document.getElementById("desktop-expanded-video2"); - inlineVideo.innerHTML = ``; - }; - - post_comment=function(fullname){ @@ -1181,8 +1160,6 @@ {% endif %} {% include "expanded_image_modal.html" %} -{% include "expanded_video_modal.html" %} -{% include "expanded_video_modal2.html" %} diff --git a/files/templates/expanded_video_modal.html b/files/templates/expanded_video_modal.html deleted file mode 100644 index 6211531a4..000000000 --- a/files/templates/expanded_video_modal.html +++ /dev/null @@ -1,18 +0,0 @@ - - - diff --git a/files/templates/expanded_video_modal2.html b/files/templates/expanded_video_modal2.html deleted file mode 100644 index 8ae3e24e4..000000000 --- a/files/templates/expanded_video_modal2.html +++ /dev/null @@ -1,14 +0,0 @@ - - - diff --git a/files/templates/formatting.html b/files/templates/formatting.html index ea594f485..fa9bb9371 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -143,8 +143,6 @@ We also have some custom hooks for mentioning users and subreddits. Note that th {% include "expanded_image_modal.html" %} -{% include "expanded_video_modal.html" %} -{% include "expanded_video_modal2.html" %} diff --git a/files/templates/submission.html b/files/templates/submission.html index cff946113..05c7578ce 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -311,12 +311,12 @@

 
 							{% elif not p.embed_url and not p.is_image and not p.is_video %}
-							
-								
- {{p.domain|truncate(30, True)}} - -
-
+ +
+ {{p.domain|truncate(30, True)}} + +
+
{% endif %} {% endif %} diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index df0139e33..267db1886 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -72,16 +72,8 @@ - {% 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.is_video or (p.embed_url and "youtu" in p.domain) or (p.url and "streamable.com/e/" in p.url) %} + {% else %} @@ -409,19 +401,17 @@ {% elif p.is_video %} - -
- -
-
+
+ +
{% elif p.embed_url and "youtu" in p.domain %} -
+
{% elif p.url and "streamable.com/e/" in p.url %} -
+
{% endif %}