registered users should be above the image
parent
6cbefa6e82
commit
74b38ceb74
|
@ -1,17 +1,5 @@
|
|||
<div class="col sidebar text-left {% if '/sidebar' not in request.path %}d-none d-lg-block{% endif %} pt-3" {% if request.path != '/sidebar' %}id="sidebar-content"{% endif %}>
|
||||
|
||||
{%- if v -%}
|
||||
{%- set art_image = macros.random_image("assets/images/" ~ SITE_NAME ~ "/sidebar") -%}
|
||||
{%- else -%}
|
||||
{%- set art_image = '/i/' ~ SITE_NAME ~ '/sidebar.webp?v=3000' -%}
|
||||
{%- endif -%}
|
||||
|
||||
{% if request.path != '/sidebar' %}
|
||||
<a href="{{art_image}}">
|
||||
<img class="mb-4" alt="sidebar image" data-nonce="{{g.nonce}}" data-onclick="expandImage()" loading="lazy" src="{{art_image}}" width=100%>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
{% if v and v.admin_level %}
|
||||
<a href="/admin/users">
|
||||
<h5 class="text-center mb-4">
|
||||
|
@ -24,6 +12,18 @@
|
|||
</h5>
|
||||
{% endif %}
|
||||
|
||||
{%- if v -%}
|
||||
{%- set art_image = macros.random_image("assets/images/" ~ SITE_NAME ~ "/sidebar") -%}
|
||||
{%- else -%}
|
||||
{%- set art_image = '/i/' ~ SITE_NAME ~ '/sidebar.webp?v=3000' -%}
|
||||
{%- endif -%}
|
||||
|
||||
{% if request.path != '/sidebar' %}
|
||||
<a href="{{art_image}}">
|
||||
<img class="mb-4" alt="sidebar image" data-nonce="{{g.nonce}}" data-onclick="expandImage()" loading="lazy" src="{{art_image}}" width=100%>
|
||||
</a>
|
||||
{% endif %}
|
||||
|
||||
<p class="text-center text-md mb-4">
|
||||
<a class="sidebar-link d-md-none" href="/random_user" data-bs-toggle="tooltip" data-bs-placement="top" title="Random User"><i class="fas fa-music"></i></a>
|
||||
<a class="sidebar-link" href="/badges" data-bs-toggle="tooltip" data-bs-placement="top" title="Badges"><i class="fas fa-hexagon"></i></a>
|
||||
|
|
|
@ -1,13 +1,5 @@
|
|||
<div class="col sidebar text-left {% if '/sidebar' not in request.path %}d-none d-lg-block{% endif %} pt-3" {% if request.path != '/sidebar' %}id="sidebar-content"{% endif %}>
|
||||
|
||||
{% if sub %}
|
||||
{% set image=sub.sidebar_url %}
|
||||
{% elif IS_FISTMAS() %}
|
||||
{% set image = macros.random_image("assets/fistmas/images/sidebar") %}
|
||||
{% else %}
|
||||
{% set image = macros.random_image("assets/images/" ~ SITE_NAME ~ "/sidebar") %}
|
||||
{% endif %}
|
||||
|
||||
{% if v and v.admin_level %}
|
||||
<a href="/admin/users">
|
||||
<h5 class="text-center mb-4">
|
||||
|
@ -20,6 +12,14 @@
|
|||
</h5>
|
||||
{% endif %}
|
||||
|
||||
{% if sub %}
|
||||
{% set image=sub.sidebar_url %}
|
||||
{% elif IS_FISTMAS() %}
|
||||
{% set image = macros.random_image("assets/fistmas/images/sidebar") %}
|
||||
{% else %}
|
||||
{% set image = macros.random_image("assets/images/" ~ SITE_NAME ~ "/sidebar") %}
|
||||
{% endif %}
|
||||
|
||||
{% if request.path != '/sidebar' %}
|
||||
{% if v and (v.is_banned or v.agendaposter) %}
|
||||
<a href="/i/{{SITE_NAME}}/sidebar2.webp">
|
||||
|
|
Loading…
Reference in New Issue