pretty up chat count

remotes/1693045480750635534/spooky-22
Aevann1 2022-08-14 05:46:00 +02:00
parent 8a5fe27164
commit ad9cdceab4
2 changed files with 5 additions and 9 deletions

View File

@ -167,14 +167,10 @@
{% if FEATURES['CHAT'] -%}
<li class="nav-item d-flex align-items-center justify-content-center text-center mx-1">
<a class="nav-link position-relative" href="/chat">
<i class="fas fa-messages" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Chat"></i>
{% set chat_count = cache.get(ONLINE_STR) %}
{% if chat_count %}
<span id="chat_count" class="notif-count bg-primary ml-1" style="padding-left: 4.5px;" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users in chat right now">
{{chat_count}}
</span>
{% endif %}
<i class="fas fa-messages" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Chat"></i>
<b class="text-lg" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users in chat right now">
{{cache.get(ONLINE_STR) or 0}}
</b>
</a>
</li>
{%- endif %}

View File

@ -51,7 +51,7 @@
<button class="col px-0 btn btn-dead m-0 pt-0" style="background: None !important; border: None;">
<a href="/chat" class="text-decoration-none" role="button">
<div class="text-center {% if request.path=='/chat' %}text-primary{% else %}text-muted{% endif %}">
<b class="text-lg">cache.get(ONLINE_STR)<b>
<b class="text-lg" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users in chat right now">{{cache.get(ONLINE_STR) or 0}}</b>
<div class="text-small">Chat</div>
</div>
</a>