forked from rDrama/rDrama
hide user counter on other sites when num of users is under 100
parent
dcc63c7834
commit
05fb4168e4
|
@ -13,21 +13,30 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="srd">
|
|
||||||
{% if SITE_NAME == 'rDrama' %}
|
{% if SITE_NAME == 'rDrama' %}
|
||||||
|
<div class="srd">
|
||||||
{% include "journoid_banner.html" %}
|
{% include "journoid_banner.html" %}
|
||||||
{%- elif SITE_NAME == 'LGBDropTheT' -%}
|
</div>
|
||||||
LGB Drop The T
|
{% elif g.loggedout_counter+g.loggedin_counter > 100 and not err %}
|
||||||
{%- elif not err -%}
|
<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 and g.loggedin_counter %}
|
{% if v and v.admin_level > 1 %}
|
||||||
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>
|
||||||
{% elif g.loggedout_counter %}
|
{% else %}
|
||||||
People here now: {{g.loggedin_counter}} logged in, {{g.loggedout_counter}} logged out
|
People here now: {{g.loggedin_counter}} logged in, {{g.loggedout_counter}} logged out
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- endif -%}
|
|
||||||
</div>
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<style>
|
||||||
|
body {padding-top: 54.62px !important}
|
||||||
|
@media (max-width: 767.98px) {
|
||||||
|
body {
|
||||||
|
padding-top: 44.05px !important
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<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;">
|
||||||
|
|
|
@ -10,10 +10,9 @@
|
||||||
<img class="mb-4" alt="sidebar image" role="button" onclick="expandDesktopImage()" loading="lazy" src="{{image}}" width=100%>
|
<img class="mb-4" alt="sidebar image" role="button" onclick="expandDesktopImage()" loading="lazy" src="{{image}}" width=100%>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
{% if g.loggedout_counter+g.loggedin_counter > 100 %}
|
||||||
<p class="mt-1 ml-2 mb-4 text-center">
|
<p class="mt-1 ml-2 mb-4 text-center">
|
||||||
{% if g.loggedin_counter %}
|
|
||||||
<span id="sidebar--counter--total">{{ g.loggedin_counter + g.loggedout_counter }}</span>
|
<span id="sidebar--counter--total">{{ g.loggedin_counter + g.loggedout_counter }}</span>
|
||||||
{% endif %}
|
|
||||||
<span id="sidebar--counter--flavor"> people here now</span>
|
<span id="sidebar--counter--flavor"> people here now</span>
|
||||||
<span id="sidebar--counter--loggedin">({{ g.loggedin_counter }} logged in)</span>
|
<span id="sidebar--counter--loggedin">({{ g.loggedin_counter }} logged in)</span>
|
||||||
{% if v and v.admin_level >= 2 -%}
|
{% if v and v.admin_level >= 2 -%}
|
||||||
|
@ -22,6 +21,7 @@
|
||||||
</span>
|
</span>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
</p>
|
</p>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<p class="text-center text-md mb-4">
|
<p class="text-center text-md mb-4">
|
||||||
<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>
|
||||||
|
|
Loading…
Reference in New Issue