From 3323523e8e5ff05a8113a393b3db39247c13015a Mon Sep 17 00:00:00 2001 From: Zichao Lin Date: Tue, 7 Jul 2026 14:00:07 +0800 Subject: [PATCH] fix(dashboard): put time in its own column on the right side --- app/templates/dashboard.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index fd78ab6..df25e84 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -117,8 +117,9 @@ new Chart(document.getElementById('chart-received'), { {{ pc.card_number }} {{ {'sent':'已寄出','delivered':'已送达','received':'已收到'}.get(pc.status) if user.language=='zh' else {'sent':'Sent','delivered':'Delivered','received':'Received'}.get(pc.status) }} -
-
+
+
+
{% 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 %} @@ -129,6 +130,9 @@ new Chart(document.getElementById('chart-received'), { {% else %} ← {{ pc.sender_name or '-' }} {% endif %} +
+
+
{% if pc.status == 'sent' and pc.send_time %} {% set delta = (now.date() - pc.send_time.date()).days %}