From afee0b2d921b3b4d458c4a9127ae64cbea39227a Mon Sep 17 00:00:00 2001 From: Zichao Lin Date: Tue, 7 Jul 2026 13:58:56 +0800 Subject: [PATCH] fix(dashboard): country on first line, person + time on second line --- app/templates/dashboard.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index 45c9473..fd78ab6 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -122,13 +122,13 @@ new Chart(document.getElementById('chart-received'), { {% if pc.country_from and pc.country_to %}{{ pc.country_from|flag }} {{ pc.country_from }} → {{ pc.country_to|flag }} {{ pc.country_to }} {% elif pc.country_to %}{{ pc.country_to|flag }} {{ pc.country_to }} {% endif %} + +
{% if pc.status in ('sent','delivered') %} → {{ pc.recipient_name or '-' }} {% else %} ← {{ pc.sender_name or '-' }} {% endif %} -
-
{% if pc.status == 'sent' and pc.send_time %} {% set delta = (now.date() - pc.send_time.date()).days %}