fix 500 error

remotes/1693045480750635534/spooky-22
Aevann1 2022-07-01 00:08:22 +02:00
parent 14d929623e
commit 8194c31417
2 changed files with 5 additions and 3 deletions

View File

@ -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 -%}

View File

@ -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 -%}