forked from rDrama/rDrama
pretty up chat count
parent
8a5fe27164
commit
ad9cdceab4
|
@ -168,13 +168,9 @@
|
||||||
<li class="nav-item d-flex align-items-center justify-content-center text-center mx-1">
|
<li class="nav-item d-flex align-items-center justify-content-center text-center mx-1">
|
||||||
<a class="nav-link position-relative" href="/chat">
|
<a class="nav-link position-relative" href="/chat">
|
||||||
<i class="fas fa-messages" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Chat"></i>
|
<i class="fas fa-messages" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Chat"></i>
|
||||||
{% set chat_count = cache.get(ONLINE_STR) %}
|
<b class="text-lg" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Users in chat right now">
|
||||||
|
{{cache.get(ONLINE_STR) or 0}}
|
||||||
{% if chat_count %}
|
</b>
|
||||||
<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 %}
|
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
<button class="col px-0 btn btn-dead m-0 pt-0" style="background: None !important; border: None;">
|
<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">
|
<a href="/chat" class="text-decoration-none" role="button">
|
||||||
<div class="text-center {% if request.path=='/chat' %}text-primary{% else %}text-muted{% endif %}">
|
<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 class="text-small">Chat</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue