From 6636af99900485cea6e2574d3f30c8e7e845fe75 Mon Sep 17 00:00:00 2001 From: Zichao Lin Date: Wed, 15 Jul 2026 19:38:52 +0800 Subject: [PATCH] fix(dashboard): hide time for pending postcards in recent activity --- app/templates/dashboard.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index c6ad0a8..18c91be 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -134,7 +134,7 @@ new Chart(document.getElementById('chart-received'), {
- {% if pc.status in ('pending','sent') and pc.send_time %} + {% if pc.status == 'sent' and pc.send_time %} {% set delta = (now.date() - pc.send_time.date()).days %} {% if delta == 0 %}{{ 'dash.today'|t(user.language) }}{% elif delta == 1 %}{{ 'dash.yesterday'|t(user.language) }}{% else %}{{ delta }}{{ 'dash.days_ago'|t(user.language) }}{% endif %} {% elif pc.status == 'delivered' and pc.arrival_time %}