forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-02-10 00:00:01 +00:00
parent 90fc18bcb8
commit 036bd59fc3
1 changed files with 51 additions and 39 deletions

View File

@ -1,12 +1,23 @@
<div class="col sidebar text-left d-none d-lg-block pt-3 pb-5 bg-white" style="max-width:300px"> <div class="col sidebar text-left d-none d-lg-block pt-3 pb-5 bg-white" style="max-width:300px">
{% if sub %}
{% set image='/static/assets/images/subs/' + sub.name + '.webp?a=1010' %}
{% else %}
{% set path = "assets/images/" + SITE_NAME + "/sidebar" %} {% set path = "assets/images/" + SITE_NAME + "/sidebar" %}
{% set image = "/static/" + path + "/" + listdir('files/' + path)|random() + '?a=32' %} {% set image = "/static/" + path + "/" + listdir('files/' + path)|random() + '?a=32' %}
{% endif %}
<a role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" data-bs-url="{{image}}" onclick="expandDesktopImage('{{image}}')"> <a role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" data-bs-url="{{image}}" onclick="expandDesktopImage('{{image}}')">
<img loading="lazy" src="{{image}}" width=100%> <img loading="lazy" src="{{image}}" width=100%>
</a> </a>
{% if sub %}
<div class="mt-4">{{sub.sidebar_html|safe}}</div>
<a class="btn btn-primary btn-block mt-4" href="/s/{{sub.name}}/mods">MODS</a>
{% if v and v.mods(sub.name) %}
<a class="btn btn-primary btn-block" href="/s/{{sub.name}}/sidebar">EDIT SIDEBAR</a>
{% endif %}
{% else %}
<a class="btn btn-primary btn-block mt-4" href="/post/16583">EMOJI MEGATHREAD</a> <a class="btn btn-primary btn-block mt-4" href="/post/16583">EMOJI MEGATHREAD</a>
<a class="btn btn-primary btn-block" href="/post/18459">BUGS/SUGGESTIONS MEGATHREAD</a> <a class="btn btn-primary btn-block" href="/post/18459">BUGS/SUGGESTIONS MEGATHREAD</a>
<a class="btn btn-primary btn-block" href="/post/32341">SIDEBAR ARTWORK MEGATHREAD</a> <a class="btn btn-primary btn-block" href="/post/32341">SIDEBAR ARTWORK MEGATHREAD</a>
@ -65,4 +76,5 @@ All rules can and likely will be ignored at the discretion of the custodial staf
</pre> </pre>
{% endif %}
</div> </div>