forked from rDrama/rDrama
User counter: move to sidebar, add flavor.
After much debate, the user counter will remain in the top banner for all non-rDrama sites using the codebase, while on rDrama the journoid banner will remain there and the counter has been moved back to the sidebar. This partially reverts some recent commits. In addition to the sidebar move, the rDrama user counter now has random flavor text, much as reddit sidebars do, though ours is cooler because it can randomly select from a list.master
parent
061c4936ce
commit
bb40bc1c53
|
@ -9,7 +9,13 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
|
<div class="srd">
|
||||||
|
{%- if SITE_NAME == 'rDrama' -%}
|
||||||
{% include "journoid_banner.html" %}
|
{% include "journoid_banner.html" %}
|
||||||
|
{%- else -%}
|
||||||
|
<i class="fas fa-globe px-1"></i> {{g.counter}} PEOPLE HERE NOW
|
||||||
|
{%- endif -%}
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="navbar navbar-expand-md navbar-light" id="navbar">
|
<div class="navbar navbar-expand-md navbar-light" id="navbar">
|
||||||
<div class="container-fluid" style="padding:0;">
|
<div class="container-fluid" style="padding:0;">
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{% set JOURNOID_BANNERS = [
|
{%-
|
||||||
|
set JOURNOID_BANNERS = [
|
||||||
(
|
(
|
||||||
"As seen on The Independent 📰✨💞",
|
"As seen on The Independent 📰✨💞",
|
||||||
"https://www.independent.co.uk/news/world/americas/us-politics/reddit-conservatives-post-trans-child-fake-b2060803.html",
|
"https://www.independent.co.uk/news/world/americas/us-politics/reddit-conservatives-post-trans-child-fake-b2060803.html",
|
||||||
|
@ -25,12 +26,9 @@
|
||||||
"/post/64305/"
|
"/post/64305/"
|
||||||
),
|
),
|
||||||
]
|
]
|
||||||
%}
|
-%}
|
||||||
|
|
||||||
{% set journoid = JOURNOID_BANNERS|random %}
|
{% set journoid = JOURNOID_BANNERS|random %}
|
||||||
<div class="srd">
|
|
||||||
<i class="fas fa-globe px-1"></i> {{g.counter}} PEOPLE HERE NOW
|
<a id="srd-link" class="text-small-mobile" href="{{ journoid[1] }}">{{ journoid[0] }}</a>
|
||||||
<!-- <a id="srd-link" class="text-small-mobile" href="{{ journoid[1] }}">{{ journoid[0] }}</a>
|
<span id="srd-separator">—</span>
|
||||||
<span id="srd-separator">—</span>
|
<a id="srd-discuss" class="text-small-mobile" href="{{ journoid[2] }}">(discuss)</a>
|
||||||
<a id="srd-discuss" class="text-small-mobile" href="{{ journoid[2] }}">(discuss)</a> -->
|
|
||||||
</div>
|
|
||||||
|
|
|
@ -1,3 +1,26 @@
|
||||||
|
{%-
|
||||||
|
set VISITORS_HERE_FLAVOR = [
|
||||||
|
' incels currently stalking roasties',
|
||||||
|
' gooners currently edging to <img src="/e/marseycumjar3.webp" style="height: 1.5em">',
|
||||||
|
' fanboys currently obsessing over Carp',
|
||||||
|
' postmodern obscurantists currently whistling for dogs',
|
||||||
|
' NEETs currently LDARmaxxing',
|
||||||
|
' valid women currently dilating ',
|
||||||
|
' stochastic terrorists currently writing manifestos',
|
||||||
|
' negholes currently being pozzed',
|
||||||
|
' bussies currently on standby',
|
||||||
|
' gamers currently harassing women',
|
||||||
|
' dramanauts hurtling through Safe Space™',
|
||||||
|
' Soros shills currently plotting the mayocide',
|
||||||
|
' furries currently yiffing',
|
||||||
|
' incels currently harassing women ',
|
||||||
|
' chuds currently agendaposting',
|
||||||
|
' coomers currently gooning',
|
||||||
|
' oopsie woopsie fucko boingos narwhaling bacons',
|
||||||
|
' well behaved rule following goodthinkers',
|
||||||
|
' throwing shade right now',
|
||||||
|
]
|
||||||
|
-%}
|
||||||
<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 %}
|
{% if sub %}
|
||||||
|
@ -13,6 +36,10 @@
|
||||||
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>
|
<img class="mb-4" alt="sidebar image" role="button" data-bs-toggle="modal" data-bs-target="#expandImageModal" onclick="expandDesktopImage('{{image}}')" loading="lazy" src="{{image}}" width=100%>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<div style="text-align: center; font-size: initial; margin-bottom: 1rem;">
|
||||||
|
<i class="fas fa-globe px-1"></i> {{g.counter}} {{ VISITORS_HERE_FLAVOR|random|safe }}
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if sub %}
|
{% if sub %}
|
||||||
{% if sub.sidebar_html %}
|
{% if sub.sidebar_html %}
|
||||||
<div class="mb-4">{{sub.sidebar_html|safe}}</div>
|
<div class="mb-4">{{sub.sidebar_html|safe}}</div>
|
||||||
|
|
Loading…
Reference in New Issue