forked from rDrama/rDrama
1
0
Fork 0

remove unnecessary template

master
Aevann 2023-12-01 21:42:42 +02:00
parent 00ece38e42
commit a9f8d81343
2 changed files with 5 additions and 8 deletions

View File

@ -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' %}
<audio id="event-song" hidden preload="none" src="{{song}}" loop></audio>
<script defer src="{{'events/shared/js/music.js' | asset}}"></script>
{% endif %}
{% endblock %}

View File

@ -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' %}
<audio id="event-song" hidden preload="none" src="{{song}}" loop></audio>
<script defer src="{{'events/shared/js/music.js' | asset}}"></script>
{% endif %}