forked from rDrama/rDrama
81 lines
4.1 KiB
HTML
81 lines
4.1 KiB
HTML
<div class="col sidebar text-left {% if not request.path.startswith('/sidebar') %}d-none d-lg-block{% endif %} pt-2" {% if request.path != '/sidebar' %}id="sidebar-content"{% endif %}>
|
|
|
|
<a href="/users">
|
|
<h5 class="text-center mt-0 mt-md-2 mb-4">
|
|
Current registered users: {{current_registered_users()}}
|
|
</h5>
|
|
</a>
|
|
|
|
{% if sub %}
|
|
{% set image=sub.sidebar_url %}
|
|
{% elif IS_EVENT() %}
|
|
{% set image = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/sidebar") %}
|
|
{% else %}
|
|
{% set image = '/assets/images/rDrama/sidebar/1173.webp?x=2' %}
|
|
{% endif %}
|
|
|
|
{% if request.path != '/sidebar' %}
|
|
{% if v and (v.is_banned or v.chud) %}
|
|
<a href="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/sidebar2.webp">
|
|
<img class="mb-4 sidebar-img" alt="sidebar image" data-nonce="{{g.nonce}}" data-onclick="expandImage()" loading="lazy" src="{{SITE_FULL_IMAGES}}/i/{{SITE_NAME}}/sidebar2.webp">
|
|
</a>
|
|
{% elif not (sub and sub.name == 'chudrama' and v and not v.can_see_chudrama) %}
|
|
<a href="{{image}}">
|
|
<img class="mb-4 sidebar-img" alt="sidebar image" data-nonce="{{g.nonce}}" data-onclick="expandImage()" loading="lazy" src="{{image}}">
|
|
</a>
|
|
{% endif %}
|
|
{% 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="/marseys" data-bs-toggle="tooltip" data-bs-placement="top" title="Marseys"><i class="fas fa-cat"></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>
|
|
<a class="sidebar-link" href="/admins" data-bs-toggle="tooltip" data-bs-placement="top" title="Admins"><i class="fas fa-crown"></i></a>
|
|
<a class="sidebar-link" href="/log" data-bs-toggle="tooltip" data-bs-placement="top" title="Moderation Log"><i class="fas fa-scroll-old"></i></a>
|
|
<a class="sidebar-link" href="/transfers" data-bs-toggle="tooltip" data-bs-placement="top" title="Transfers"><i class="fas fa-arrow-right-arrow-left"></i></a>
|
|
<a class="sidebar-link" href="/random_post" data-bs-toggle="tooltip" data-bs-placement="top" title="Random Post"><i class="fas fa-random"></i></a>
|
|
{% if IS_FISTMAS() %}
|
|
<span class="sidebar-link" data-nonce="{{g.nonce}}" data-onclick="postToastRoastEventDarkmode(this, '/events/fistmas2022/darkmode')" style="display:inline" data-bs-toggle="tooltip" data-bs-placement="top" title="Toggle Dark Mode"><i class="fas fa-moon-over-sun"></i></span>
|
|
{% endif %}
|
|
</p>
|
|
|
|
{% if sub and sub.sidebar_html %}
|
|
<div class="mb-4">{{sub.sidebar_html|safe}}</div>
|
|
{% endif %}
|
|
|
|
<a class="btn btn-primary btn-block mb-3" href="/post/151246/rdrama-featureset">SITE GUIDE</a>
|
|
<a class="btn btn-primary btn-block mb-3" href="/ping_groups">PING GROUPS</a>
|
|
<a id="sidebar--directory--btn" class="btn btn-primary btn-block mb-3" href="/directory">
|
|
<span id="sidebar--directory--head">DIRECTORY</span>
|
|
<span id="sidebar--directory--subhead">Submit Marseys & Art | Info Megathreads</span>
|
|
</a>
|
|
<a class="btn btn-primary btn-block mb-3" href="/holes">BROWSE {{HOLE_NAME|upper}}S</a>
|
|
<a class="btn btn-primary btn-block mb-3" href="/create_hole">CREATE {{HOLE_NAME|upper}}</a>
|
|
|
|
{% if sub %}
|
|
<br>
|
|
{% if v and v.mods(sub.name) %}
|
|
<a class="btn btn-primary btn-block mb-3 text-uppercase" href="/h/{{sub}}/settings">/h/{{sub}} SETTINGS</a>
|
|
{% endif %}
|
|
|
|
<a class="btn btn-primary btn-block mb-3 text-uppercase" href="/h/{{sub}}/log">/h/{{sub}} LOG</a>
|
|
<a class="btn btn-primary btn-block mb-3 text-uppercase" href="/h/{{sub}}/mods">/h/{{sub}} MODS</a>
|
|
<a class="btn btn-primary btn-block mb-3 text-uppercase" href="/h/{{sub}}/exilees">/h/{{sub}} EXILEES</a>
|
|
{% else %}
|
|
<div class="sidebar--rules sidebar--rules--rdrama pt-2">
|
|
{% set rules = "rules_" ~ SITE_NAME ~ ".html" %}
|
|
{% include rules %}
|
|
</div>
|
|
{% endif %}
|
|
|
|
<br>
|
|
<hr>
|
|
<div class="mt-3">
|
|
Live commit: <a href="https://fsdfsd.net/rDrama/rDrama/commit/{{git_head()[0]}}">{{git_head()[0]}}</a>
|
|
</div>
|
|
</div>
|
|
|
|
{% if IS_FISTMAS() %}
|
|
<script defer src="{{'events/fistmas/js/darkmode.js' | asset}}"></script>
|
|
{% endif %}
|