forked from MarseyWorld/MarseyWorld
only calc_users when we need to show them
parent
dca21741c3
commit
3150714c2e
|
@ -13,8 +13,7 @@
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
{{calc_users(v)}}
|
{% if not err %}
|
||||||
{% if g.loggedin_counter and not err and (SITE_NAME in ('PCM','rDrama') or g.loggedin_counter+g.loggedout_counter > 100) %}
|
|
||||||
<div class="srd">
|
<div class="srd">
|
||||||
{% if SITE_NAME == 'rDrama' %}
|
{% if SITE_NAME == 'rDrama' %}
|
||||||
{% if range(1,5) | random == 1 %}
|
{% if range(1,5) | random == 1 %}
|
||||||
|
@ -41,9 +40,11 @@
|
||||||
' throwing shade right now',
|
' throwing shade right now',
|
||||||
]
|
]
|
||||||
-%}
|
-%}
|
||||||
|
{{calc_users(v)}}
|
||||||
{{g.loggedin_counter+g.loggedout_counter}} {{VISITORS_HERE_FLAVOR|random|safe}} ({{g.loggedin_counter}} logged in)
|
{{g.loggedin_counter+g.loggedout_counter}} {{VISITORS_HERE_FLAVOR|random|safe}} ({{g.loggedin_counter}} logged in)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{{calc_users(v)}}
|
||||||
{{g.loggedin_counter+g.loggedout_counter}} people here now ({{g.loggedin_counter}} logged in)
|
{{g.loggedin_counter+g.loggedout_counter}} people here now ({{g.loggedin_counter}} logged in)
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue