WPD: restrict rotating sidebars to logged-in.

remotes/1693176582716663532/tmp_refs/heads/watchparty
Snakes 2022-09-26 01:43:57 -04:00
parent 742093aeae
commit dcf689527b
Signed by: Snakes
GPG Key ID: E745A82778055C7E
1 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,11 @@
<div class="col sidebar text-left {% if '/sidebar' not in request.path %}d-none d-lg-block{% endif %} pt-3 pb-5" {% if request.path != '/sidebar' %}id="sidebar-content"{% endif %}>
{%- set art_path = "assets/images/WPD/sidebar" -%}
{%- set art_image = "/" + art_path + "/" + listdir('files/' + art_path)|random() + '?v=45' -%}
{%- if v -%}
{%- set art_path = 'assets/images/WPD/sidebar' -%}
{%- set art_image = '/' + art_path + '/' + listdir('files/' + art_path)|random() + '?v=45' -%}
{%- else -%}
{%- set art_image = '/i/' + SITE_NAME + '/sidebar.webp?v=3000' -%}
{%- endif -%}
{% if request.path != '/sidebar' %}
<a href="{{art_image}}">