forked from rDrama/rDrama
1
0
Fork 0

actually dont hide sidebar images, just display a stock one

master
Aevann 2024-02-15 15:48:17 +02:00
parent e2876f4e1b
commit 89bb78c9fc
2 changed files with 41 additions and 41 deletions

View File

@ -15,8 +15,9 @@
</h5>
</a>
{% if v %}
{% if IS_FISTMAS() %}
{% if not v %}
{% set image = "https://i.watchpeopledie.tv/assets/images/WPD/sidebar/1.webp?x=7" %}
{% elif IS_FISTMAS() %}
{% set image = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/sidebar/" ~ SITE_NAME ) %}
{% elif IS_EVENT() %}
{% set image = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/sidebar") %}
@ -35,7 +36,6 @@
</a>
{% endif %}
{% endif %}
{% endif %}
<p class="text-center text-md mb-4">
<a class="sidebar-link d-md-none" href="/leaderboard" data-bs-toggle="tooltip" data-bs-placement="top" title="Leaderboard"><i class="fas fa-trophy"></i></a>

View File

@ -15,8 +15,9 @@
</h5>
</a>
{% if v %}
{% if hole and hole.sidebarurls %}
{% if not v %}
{% set image = "https://i.rdrama.net/assets/images/rDrama/sidebar/63.webp?x=7" %}
{% elif hole and hole.sidebarurls %}
{% set image = hole.random_sidebar %}
{% elif IS_FISTMAS() %}
{% set image = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/sidebar/" ~ SITE_NAME ) %}
@ -39,7 +40,6 @@
</a>
{% endif %}
{% endif %}
{% endif %}
<p class="text-center text-md mb-4">
<a class="sidebar-link d-md-none" href="/leaderboard" data-bs-toggle="tooltip" data-bs-placement="top" title="Leaderboard"><i class="fas fa-trophy"></i></a>