From 6da64be383c94ed37567b96064da97e0e253ef64 Mon Sep 17 00:00:00 2001 From: emile Date: Fri, 9 Aug 2024 13:36:46 +0300 Subject: [PATCH] new --- .../chat_templates/partials/visitors.html | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/osinaweb/osinacore/templates/chat_templates/partials/visitors.html b/osinaweb/osinacore/templates/chat_templates/partials/visitors.html index b4c00af4..b9c342f2 100644 --- a/osinaweb/osinacore/templates/chat_templates/partials/visitors.html +++ b/osinaweb/osinacore/templates/chat_templates/partials/visitors.html @@ -13,22 +13,15 @@ {% for visitor in visitors %}
-
- {% if not visitor.country == 'Unknown' %} - - {% else %} - - {% endif %} - - {% if visitor.is_online %} -
- {% endif %} -

{{visitor.ip_address}}

- + {% if not visitor.visitorlog_set.all.last.title %} + {{ visitor.visitorlog_set.all.last.url|slice:":26" }}{% if visitor.visitorlog_set.all.last.url|length > 26 %}…{% endif %} + {% else %} + {{ visitor.visitorlog_set.all.last.title|slice:":26" }}{% if visitor.visitorlog_set.all.last.title|length > 26 %}…{% endif %} + {% endif %}