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-05-23 20:09:40 +00:00
2022-09-26 05:43:57 +00:00
{%- if v -%}
2022-12-19 16:15:25 +00:00
{%- set art_image = macros.random_image("assets/images/" ~ SITE_NAME ~ "/sidebar") -%}
2022-09-26 05:43:57 +00:00
{%- else -%}
2022-12-07 08:59:40 +00:00
{%- set art_image = '/i/' ~ SITE_NAME ~ '/sidebar.webp?v=3000' -%}
2022-09-26 05:43:57 +00:00
{%- endif -%}
2022-05-23 20:09:40 +00:00
2022-08-04 20:41:14 +00:00
{% if request.path != '/sidebar' %}
2022-09-26 05:19:37 +00:00
< a href = "{{art_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 = "{{art_image}}" width = 100% >
2022-08-04 20:41:14 +00:00
< / a >
{% endif %}
2022-05-23 20:09:40 +00:00
2022-12-30 13:54:49 +00:00
{% if v and v.admin_level %}
< a href = "/admin/users" >
2022-12-30 13:57:00 +00:00
< h5 class = "text-center mb-4" >
2022-12-30 13:54:49 +00:00
Current registered users: {{current_registered_users()}}
< / h5 >
2022-12-30 13:57:00 +00:00
< / a >
{% else %}
< h5 class = "text-center mb-4" >
Current registered users: {{current_registered_users()}}
< / h5 >
2022-12-30 13:54:49 +00:00
{% endif %}
2022-07-12 19:18:40 +00:00
< p class = "text-center text-md mb-4" >
2022-12-08 12:15:21 +00:00
< 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 >
2022-07-12 19:18:40 +00:00
< a class = "sidebar-link" href = "/badges" data-bs-toggle = "tooltip" data-bs-placement = "top" title = "Badges" > < i class = "fas fa-hexagon" > < / i > < / a >
2022-06-22 04:49:10 +00:00
< 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-07-12 19:18:40 +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 >
2022-08-13 07:42:19 +00:00
< 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 >
2022-12-24 22:59:43 +00:00
{% if HOLIDAY_EVENT %}
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 %}
Rearrange nav icons, move some to sidebar.
After the recent addition of the Lottershe, some narrow phone screens
caused the header to wrap to two lines. Prompted by this, a more
general rework of the header nav icons was initiated.
Notably: random user, random post, all comments has been moved to
sidebar on all sites, and a .sidebar-link CSS class was created to
support it. Additionally, on rDrama, links for Badges and Marseys
were added, since I believe these are presently inaccessible from
the UI. Further, a Modlog link was added to be more accessible.
Additionally, the icons in the header were rearranged on desktop and
mobile to better fit relative priority.
2022-05-30 08:16:03 +00:00
< / p >
2022-08-19 21:31:26 +00:00
{% if sub and sub.sidebar_html %}
< div class = "mb-4" > {{sub.sidebar_html|safe}}< / div >
2022-05-23 20:09:40 +00:00
{% endif %}
2022-06-22 04:49:10 +00:00
2022-10-08 05:10:39 +00:00
< div class = "sidebar-wpd--flairs sidebar-wpd--flairs--3" >
2022-06-23 10:56:37 +00:00
< a href = "/h/accident" > Accident< / a >
2022-06-26 10:39:53 +00:00
< a href = "/h/suicide" > Suicide< / a >
2022-06-23 10:56:37 +00:00
< a href = "/h/animal" > Animal< / a >
< a href = "/h/beating" > Beating< / a >
< a href = "/h/bladed" > Bladed< / a >
2022-06-27 03:37:52 +00:00
< a href = "/h/beheading" > Beheading< / a >
2022-06-23 10:56:37 +00:00
< a href = "/h/vehicle" > Vehicle< / a >
< a href = "/h/medical" > Medical< / a >
< a href = "/h/shooting" > Shooting< / a >
< a href = "/h/falling" > Falling< / a >
< a href = "/h/explosions" > Explosions< / a >
< a href = "/h/industrial" > Industrial< / a >
< a href = "/h/electricity" > Electricity< / a >
2022-06-26 09:15:12 +00:00
< a href = "/h/burning" > Burning< / a >
2022-06-23 10:56:37 +00:00
< a href = "/h/drowning" > Drowning< / a >
2022-06-26 10:39:53 +00:00
< a href = "/h/cartel" > Cartel< / a >
< a href = "/h/isis" > ISIS< / a >
2022-06-27 03:37:52 +00:00
< a href = "/h/execution" > Execution< / a >
2022-06-29 22:11:38 +00:00
< a href = "/h/maiming" > Maiming< / a >
2022-06-26 10:39:53 +00:00
< a href = "/h/police" > Police< / a >
2022-06-27 03:37:52 +00:00
< a href = "/h/combat" > Combat< / a >
2022-10-08 05:10:39 +00:00
< a href = "/h/other" > Other< / a >
2022-10-20 18:25:53 +00:00
< a href = "/h/compilation" > Compilation< / a >
2022-10-08 05:10:39 +00:00
< a href = "/h/request" class = "font-italic" > Request< / a >
< / div >
< hr >
2022-10-20 18:25:53 +00:00
< div class = "sidebar-wpd--flairs sidebar-wpd--flairs--3" >
< a href = "/h/gore" > Gore< / a >
< a href = "/h/aftermath" > Aftermath< / a >
< a href = "/h/selfharm" > Self-Harm< / a >
< / div >
< hr >
2022-10-08 05:10:39 +00:00
< div class = "sidebar-wpd--flairs sidebar-wpd--flairs--2 mb-4" >
< a href = "/h/meta" class = "font-weight-bold" > Meta< / a >
2022-07-21 21:27:33 +00:00
< a href = "/h/discussion" > Discussion< / a >
2022-08-30 20:53:44 +00:00
< a href = "/h/social" > Social< / a >
< a href = "/h/music" > Music< / a >
2022-06-23 10:56:37 +00:00
< / div >
2022-12-26 22:21:01 +00:00
< div class = "sidebar--rules sidebar--rules--wpd pt-2" >
2022-12-07 08:59:40 +00:00
{% set rules = "rules_" ~ SITE_NAME ~ ".html" %}
2022-12-05 05:22:08 +00:00
{% include rules %}
2022-06-22 04:49:10 +00:00
< / div >
2022-05-24 21:28:16 +00:00
< / div >
2022-12-24 22:59:43 +00:00
{% if HOLIDAY_EVENT %}
2022-12-27 01:32:37 +00:00
< script defer src = "{{'event/js/darkmode.js' | asset}}" > < / script >
2022-12-24 22:59:43 +00:00
{% endif %}