From a9f8d813433cd9c7cc420338ec37441f355c0b38 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 1 Dec 2023 21:42:42 +0200 Subject: [PATCH] remove unnecessary template --- files/templates/default.html | 7 +++++-- files/templates/events/shared/music.html | 6 ------ 2 files changed, 5 insertions(+), 8 deletions(-) delete mode 100644 files/templates/events/shared/music.html diff --git a/files/templates/default.html b/files/templates/default.html index 0fe1a8338e..205483c29b 100644 --- a/files/templates/default.html +++ b/files/templates/default.html @@ -137,7 +137,10 @@ {% endif %} {% endif %} - {% if IS_EVENT() %} - {% include "events/shared/music.html" %} + {% if IS_EVENT() and not (SITE_NAME == 'WPD' and not v) and (not v or v.event_music) and not (hole and hole.name == 'music') and not (u and u.song) and not (IS_HOMOWEEN() and p and p.award_count("haunt", v)) and not (p and p.embed and p.domain == 'twitter.com') %} + {% set path = "assets/events/" ~ IS_EVENT() ~ "/music" %} + {% set song = SITE_FULL ~ "/" ~ path ~ "/" ~ listdir('files/'~path)|random() ~ '?x=45' %} + + {% endif %} {% endblock %} diff --git a/files/templates/events/shared/music.html b/files/templates/events/shared/music.html deleted file mode 100644 index 738fa98b1c..0000000000 --- a/files/templates/events/shared/music.html +++ /dev/null @@ -1,6 +0,0 @@ -{% if not (SITE_NAME == 'WPD' and not v) and (not v or v.event_music) and not (hole and hole.name == 'music') and not (u and u.song) and not (IS_HOMOWEEN() and p and p.award_count("haunt", v)) and not (p and p.embed and p.domain == 'twitter.com') %} - {% set path = "assets/events/" ~ IS_EVENT() ~ "/music" %} - {% set song = SITE_FULL ~ "/" ~ path ~ "/" ~ listdir('files/'~path)|random() ~ '?x=45' %} - - -{% endif %}