From e9aa528a2ea26d064bd3ab253b54dfb28ba52e34 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 4 Aug 2022 22:41:14 +0200 Subject: [PATCH] dont display sidebar image in /sidebar --- files/templates/sidebar_Deuxrama.html | 4 +++- files/templates/sidebar_LGBDropTheT.html | 8 +++++--- files/templates/sidebar_PCM.html | 8 +++++--- files/templates/sidebar_WPD.html | 8 +++++--- files/templates/sidebar_rDrama.html | 18 ++++++++++-------- 5 files changed, 28 insertions(+), 18 deletions(-) diff --git a/files/templates/sidebar_Deuxrama.html b/files/templates/sidebar_Deuxrama.html index 9942d3788..b06da2610 100644 --- a/files/templates/sidebar_Deuxrama.html +++ b/files/templates/sidebar_Deuxrama.html @@ -3,7 +3,9 @@ {%- set art_path = "assets/images/" + SITE_NAME + "/sidebar/" -%} {%- set sidebar_art = "/" + art_path + listdir('files/' + art_path)|random() + '?v=1' -%} - sidebar art + {% if request.path != '/sidebar' %} + sidebar art + {% endif %}

diff --git a/files/templates/sidebar_LGBDropTheT.html b/files/templates/sidebar_LGBDropTheT.html index 0b055b405..6c8e2221d 100644 --- a/files/templates/sidebar_LGBDropTheT.html +++ b/files/templates/sidebar_LGBDropTheT.html @@ -6,9 +6,11 @@ {% set image = asset_siteimg('sidebar.webp') %} {% endif %} - - sidebar image - + {% if request.path != '/sidebar' %} + + sidebar image + + {% endif %} {% if g.loggedin_counter and g.loggedin_counter+g.loggedout_counter > 100 %}

diff --git a/files/templates/sidebar_PCM.html b/files/templates/sidebar_PCM.html index 929ab6c58..56255b1f0 100644 --- a/files/templates/sidebar_PCM.html +++ b/files/templates/sidebar_PCM.html @@ -45,7 +45,9 @@ {% set image='/i/' + SITE_NAME + '/sidebar.webp?v=3000' %} {% endif %} - - sidebar image - + {% if request.path != '/sidebar' %} + + sidebar image + + {% endif %} \ No newline at end of file diff --git a/files/templates/sidebar_WPD.html b/files/templates/sidebar_WPD.html index 53277327e..71d24fd1b 100644 --- a/files/templates/sidebar_WPD.html +++ b/files/templates/sidebar_WPD.html @@ -6,9 +6,11 @@ {% set image='/i/' + SITE_NAME + '/sidebar.webp?v=3000' %} {% endif %} - - sidebar image - + {% if request.path != '/sidebar' %} + + sidebar image + + {% endif %}

diff --git a/files/templates/sidebar_rDrama.html b/files/templates/sidebar_rDrama.html index 56d8f4782..6f4ed04ac 100644 --- a/files/templates/sidebar_rDrama.html +++ b/files/templates/sidebar_rDrama.html @@ -7,14 +7,16 @@ {% set image = "/" + path + "/" + listdir('files/' + path)|random() + '?v=44' %} {% endif %} - {% if v and (v.is_banned or v.agendaposter) %} - - sidebar image - - {% else %} - - sidebar image - + {% if request.path != '/sidebar' %} + {% if v and (v.is_banned or v.agendaposter) %} + + sidebar image + + {% else %} + + sidebar image + + {% endif %} {% endif %}