1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-23 02:38:29 +02:00

Properly sort messages and add fetch previous messages ability

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-04-27 14:12:08 +02:00
parent 727aa8b6d6
commit bb137509e1
4 changed files with 78 additions and 42 deletions

View File

@ -35,6 +35,12 @@
</h3>
</div>
<div class="card-body overflow-y-scroll mw-100 h-100 flex-grow-0" id="chat-messages">
<div class="text-center d-none" id="fetch-previous-messages">
<a href="#" class="nav-link" onclick="event.preventDefault(); fetchPreviousMessages()">
{% trans "Fetch previous messages…" %}
</a>
<hr>
</div>
<ul class="list-group list-group-flush" id="message-list"></ul>
</div>
<div class="card-footer mt-auto">