MarseyWorld/files/templates/sidebar_rDrama.html

77 lines
4.0 KiB
HTML
Raw Normal View History

2022-11-09 19:53:37 +00:00
<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 %}>
2022-04-02 16:54:27 +00:00
{% 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 %}
2022-08-04 20:41:14 +00:00
{% if request.path != '/sidebar' %}
{% if v and (v.is_banned or v.agendaposter) %}
<a href="/i/{{SITE_NAME}}/sidebar2.webp">
2022-12-30 12:14:18 +00:00
<img class="mb-4" alt="sidebar image" data-nonce="{{g.nonce}}" data-onclick="expandImage()" loading="lazy" src="/i/{{SITE_NAME}}/sidebar2.webp" width=100%>
2022-08-04 20:41:14 +00:00
</a>
{% elif not (sub and sub.name == 'chudrama' and v and not v.can_see_chudrama) %}
2022-12-04 01:39:09 +00:00
<a href="{{image}}">
2022-12-30 12:14:18 +00:00
<img class="mb-4" alt="sidebar image" data-nonce="{{g.nonce}}" data-onclick="expandImage()" loading="lazy" src="{{image}}" width=100%>
2022-08-04 20:41:14 +00:00
</a>
{% endif %}
2022-04-14 17:40:13 +00:00
{% 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>
2022-06-03 10:29:10 +00:00
<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>
2023-01-01 05:33:09 +00:00
{% if IS_FISTMAS() %}
2022-12-30 12:14:18 +00:00
<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>
2022-12-24 22:59:43 +00:00
{% endif %}
</p>
2022-04-02 16:54:27 +00:00
{% if sub %}
{% if sub.sidebar_html %}
<div class="mb-4">{{sub.sidebar_html|safe}}</div>
{% endif %}
{% if v %}
<a class="btn btn-primary btn-block mb-3" href="/holes">BROWSE {{HOLE_NAME|upper}}S</a>
2022-06-21 05:20:21 +00:00
{% if v.can_create_hole -%}
<a class="btn btn-primary btn-block mb-3" href="/create_hole">CREATE {{HOLE_NAME|upper}}</a>
2022-06-21 05:20:21 +00:00
{%- endif %}
2022-09-29 09:39:37 +00:00
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub}}/log">{{HOLE_NAME|upper}} LOG</a>
2022-04-02 16:54:27 +00:00
{% if v.mods(sub.name) %}
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub}}/settings">{{HOLE_NAME|upper}} SETTINGS</a>
2022-04-02 16:54:27 +00:00
{% endif %}
{% endif %}
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub}}/mods">{{HOLE_NAME|upper}} MODS</a>
<a class="btn btn-primary btn-block mb-3" href="/h/{{sub}}/exilees">{{HOLE_NAME|upper}} EXILEES</a>
2022-04-02 16:54:27 +00:00
{% else %}
<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>
2022-06-21 05:20:21 +00:00
{% if v and v.can_create_hole -%}
<a class="btn btn-primary btn-block mb-3" href="/create_hole">CREATE {{HOLE_NAME|upper}}</a>
2022-06-21 05:20:21 +00:00
{%- endif %}
2022-04-02 16:54:27 +00:00
2022-12-26 22:21:01 +00:00
<div class="sidebar--rules sidebar--rules--rdrama pt-2">
{% set rules = "rules_" ~ SITE_NAME ~ ".html" %}
{% include rules %}
2022-04-02 16:54:27 +00:00
</div>
<hr>
<div class="mt-3">
Live commit: <a href="https://fsdfsd.net/rDrama/rDrama/commit/{{gitref[0]}}">{{gitref[0]}}</a>
</div>
2022-04-02 16:54:27 +00:00
{% endif %}
2022-05-24 21:27:12 +00:00
</div>
2022-12-24 22:59:43 +00:00
2023-01-01 05:33:09 +00:00
{% if IS_FISTMAS() %}
<script defer src="{{'fistmas/js/darkmode.js' | asset}}"></script>
2022-12-24 22:59:43 +00:00
{% endif %}