make user counter better
parent
cdc4e5b660
commit
255e8b88d2
|
@ -5008,14 +5008,15 @@ img[glow]:not([data-src]) {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
font-size: 1.3rem;
|
color: white;
|
||||||
|
font-size: min(3vw,16px);
|
||||||
}
|
}
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
.srd {
|
.srd {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.srd > a {
|
.srd * {
|
||||||
color: white;
|
color: white;
|
||||||
}
|
}
|
||||||
#srd-discuss {
|
#srd-discuss {
|
||||||
|
|
|
@ -13,18 +13,45 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
{% if SITE_NAME == 'rDrama' %}
|
{% if g.loggedin_counter and not err and (SITE_NAME in ('PCM','rDrama') or g.loggedin_counter+g.loggedout_counter > 100) %}
|
||||||
<div class="srd">
|
|
||||||
{% include "journoid_banner.html" %}
|
|
||||||
</div>
|
|
||||||
{% elif g.loggedin_counter and not err and (SITE_NAME == 'PCM' or g.loggedin_counter+g.loggedout_counter > 100) %}
|
|
||||||
<div class="srd">
|
<div class="srd">
|
||||||
<img src="/e/marseylowpoly.webp" height=18 width=28>
|
<img src="/e/marseylowpoly.webp" height=18 width=28>
|
||||||
|
|
||||||
{% if v and v.admin_level > 1 %}
|
{% if v and v.admin_level > 1 and (SITE != 'rdrama.net' or v.id == AEVANN_ID) %}
|
||||||
People here now: <a href="/admin/loggedin">{{g.loggedin_counter}} logged in</a>, <a href="/admin/loggedout">{{g.loggedout_counter}} logged out</a>
|
People here now: <a href="/admin/loggedin">{{g.loggedin_counter}} logged in</a>, <a href="/admin/loggedout">{{g.loggedout_counter}} logged out</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
{{g.loggedin_counter+g.loggedout_counter}} people here now ({{g.loggedin_counter}} logged in)
|
{% if SITE_NAME == 'rDrama' %}
|
||||||
|
{% if range(1,3) | random == 1 %}
|
||||||
|
{% include "journoid_banner.html" %}
|
||||||
|
{% else %}
|
||||||
|
{%-
|
||||||
|
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',
|
||||||
|
]
|
||||||
|
-%}
|
||||||
|
{{g.loggedin_counter+g.loggedout_counter}} {{ VISITORS_HERE_FLAVOR|random|safe }} ({{ g.loggedin_counter }} logged in)
|
||||||
|
{% endif %}
|
||||||
|
{% else %}
|
||||||
|
{{g.loggedin_counter+g.loggedout_counter}} people here now ({{g.loggedin_counter}} logged in)
|
||||||
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -29,6 +29,6 @@ set JOURNOID_BANNERS = [
|
||||||
-%}
|
-%}
|
||||||
{% set journoid = JOURNOID_BANNERS|random %}
|
{% set journoid = JOURNOID_BANNERS|random %}
|
||||||
|
|
||||||
<a id="srd-link" class="text-small-mobile" href="{{ journoid[1] }}">{{ journoid[0] }}</a>
|
<a id="srd-link" 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" href="{{ journoid[2] }}">(discuss)</a>
|
||||||
|
|
|
@ -1,26 +1,3 @@
|
||||||
{%-
|
|
||||||
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 {% if '/sidebar' not in request.path %}d-none d-lg-block{% endif %} pt-3 pb-5 bg-white" id="sidebar-content">
|
<div class="col sidebar text-left {% if '/sidebar' not in request.path %}d-none d-lg-block{% endif %} pt-3 pb-5 bg-white" id="sidebar-content">
|
||||||
|
|
||||||
{% if sub %}
|
{% if sub %}
|
||||||
|
@ -40,20 +17,6 @@ set VISITORS_HERE_FLAVOR = [
|
||||||
</a>
|
</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<p class="mt-1 ml-2 mb-4 text-center">
|
|
||||||
<img src="/e/marseylowpoly.webp" height=18 width=28>
|
|
||||||
{% if g.loggedin_counter %}
|
|
||||||
<span id="sidebar--counter--total">{{ g.loggedin_counter + g.loggedout_counter }}</span>
|
|
||||||
{% endif %}
|
|
||||||
<span id="sidebar--counter--flavor">{{ VISITORS_HERE_FLAVOR|random|safe }}</span>
|
|
||||||
<span id="sidebar--counter--loggedin">({{ g.loggedin_counter }} logged in)</span>
|
|
||||||
{% if v and v.admin_level >= 2 -%}
|
|
||||||
<span id="sidebar--counter--admin">
|
|
||||||
<a href="/admin/loggedin">Logged In</a> | <a href="/admin/loggedout">Logged Out</a>
|
|
||||||
</span>
|
|
||||||
{%- endif %}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p class="text-center text-md mb-4">
|
<p class="text-center text-md mb-4">
|
||||||
<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="/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="/badges" data-bs-toggle="tooltip" data-bs-placement="top" title="Badges"><i class="fas fa-hexagon"></i></a>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{%-
|
{%-
|
||||||
set CACHE_VER = {
|
set CACHE_VER = {
|
||||||
'css/main.css': 424,
|
'css/main.css': 425,
|
||||||
'css/catalog.css': 2,
|
'css/catalog.css': 2,
|
||||||
|
|
||||||
'css/4chan.css': 61,
|
'css/4chan.css': 61,
|
||||||
|
|
Loading…
Reference in New Issue