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">
|
||||
<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 %}
|
||||
<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 %}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue