forked from MarseyWorld/MarseyWorld
fix 500 error
parent
14d929623e
commit
8194c31417
|
@ -19,9 +19,9 @@
|
|||
{%- elif not err -%}
|
||||
<img src="/e/marseylowpoly.webp" height=18 width=28>
|
||||
|
||||
{% if v and v.admin_level > 1 %}
|
||||
{% if v and v.admin_level > 1 and g.loggedin_counter %}
|
||||
People here now: <a href="/admin/loggedin">{{g.loggedin_counter}} logged in</a>, <a href="/admin/loggedout">{{g.loggedout_counter}} logged out</a>
|
||||
{% else %}
|
||||
{% elif g.loggedout_counter %}
|
||||
People here now: {{g.loggedin_counter}} logged in, {{g.loggedout_counter}} logged out
|
||||
{% endif %}
|
||||
{%- endif -%}
|
||||
|
|
|
@ -42,7 +42,9 @@ set VISITORS_HERE_FLAVOR = [
|
|||
|
||||
<p class="mt-1 ml-2 mb-4 text-center">
|
||||
<img src="/e/marseylowpoly.webp" height=18 width=28>
|
||||
<span id="sidebar--counter--total">{{ g.loggedin_counter + g.loggedout_counter }}</span>
|
||||
{% 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 -%}
|
||||
|
|
Loading…
Reference in New Issue