MarseyWorld/files/templates/sidebar_rDrama.html

102 lines
5.2 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 %}>
<h5 class="text-center mt-0 mt-md-2 mb-4">
Top Poster of the Day:
<p>
{% with user=poster_of_the_day() %}
{% include "user_in_table.html" %}
{% endwith %}
</p>
</h5>
<a href="/users">
<h5 class="text-center mt-0 mt-md-2 mb-4">
Current Registered Users: {{current_registered_users()}}
</h5>
</a>
{% if not v %}
{% set image = SITE_FULL_IMAGES + "/assets/images/rDrama/sidebar/63.webp?x=7" %}
{% elif hole and hole.sidebarurls %}
{% set image = hole.random_sidebar %}
{% elif IS_FISTMAS() %}
{% set image = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/sidebar/" ~ SITE_NAME ) %}
{% elif IS_EVENT() %}
{% set image = macros.random_image("assets/events/" ~ IS_EVENT() ~ "/images/sidebar") %}
{% else %}
{% set image = macros.random_image("assets/images/" ~ SITE_NAME ~ "/sidebar") %}
{% endif %}
{% if request.path != '/sidebar' %}
{% if IS_HOMOWEEN() and not (hole and hole.sidebarurls) %}
{% include "events/homoween/eye_tracking.html" %}
{% elif 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 (hole and hole.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="/leaderboard" data-bs-toggle="tooltip" data-bs-placement="top" title="Leaderboard"><i class="fas fa-trophy"></i></a>
<a class="sidebar-link d-md-none" href="/random_user" data-bs-toggle="tooltip" data-bs-placement="top" title="Random User with a Profile Anthem"><i class="fas fa-music"></i></a>
<a class="sidebar-link" href="/ping_groups" data-bs-toggle="tooltip" data-bs-placement="top" title="Ping Groups"><i class="fas fa-bell"></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>
</p>
{% if IS_HOMOWEEN() %}
<div class="progress">
<div style="--width:{{bar_position()[0]}}%" class="bar-left"></div>
<div style="--width:{{bar_position()[1]}}%" class="bar-right"></div>
<div class="legend">
<span title="{{bar_position()[2]}}">{{bar_position()[0]}}% Vaxxed</span>
<span title="{{bar_position()[3]}}">{{bar_position()[1]}}% Infected</span>
</div>
</div>
{% endif %}
{% if hole and hole.sidebar_html %}
<div class="mb-4">{{hole.sidebar_html|safe}}</div>
{% endif %}
<a class="btn btn-primary btn-block mb-3" href="/?effortposts_only=True">BROWSE EFFORTPOSTS</a>
<a class="btn btn-primary btn-block mb-3" href="/post/151246/rdrama-featureset">SITE GUIDE</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">Emojis & Art | Info Megathreads</span>
</a>
<a class="btn btn-primary btn-block mb-3" href="/holes">BROWSE HOLES</a>
<a class="btn btn-primary btn-block mb-3" href="/create_hole">CREATE HOLE</a>
{% if hole %}
<br>
{% if v and v.mods_hole(hole.name) %}
<a class="btn btn-primary btn-block mb-3 text-uppercase" style="font-size: 0.87rem" href="/h/{{hole}}/settings">/h/{{hole}} SETTINGS</a>
{% endif %}
<a class="btn btn-primary btn-block mb-3 text-uppercase" style="font-size: 0.87rem" href="/h/{{hole}}/log">/h/{{hole}} LOG</a>
<a class="btn btn-primary btn-block mb-3 text-uppercase" style="font-size: 0.87rem" href="/h/{{hole}}/mods">/h/{{hole}} MODS</a>
<a class="btn btn-primary btn-block mb-3 text-uppercase" style="font-size: 0.87rem" href="/h/{{hole}}/exilees">/h/{{hole}} EXILEES</a>
<a class="btn btn-primary btn-block mb-3 text-uppercase" style="font-size: 0.87rem" href="/h/{{hole}}/followers">/h/{{hole}} FOLLOWERS</a>
<a class="btn btn-primary btn-block mb-3 text-uppercase" style="font-size: 0.87rem" href="/h/{{hole}}/blockers">/h/{{hole}} BLOCKERS</a>
{% else %}
<div class="sidebar--rules sidebar--rules--rdrama pt-2">
{% set rules = "rules_" ~ SITE_NAME ~ ".html" %}
{% include rules %}
</div>
{% endif %}
<hr>
<div class="mt-3">
Live commit: <a href="https://fsdfsd.net/rDrama/rDrama/commit/{{git_head()[0]}}">{{git_head()[0]}}</a>
</div>
</div>