diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index d3d0245..45c9473 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -117,6 +117,7 @@ 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 }} @@ -127,7 +128,7 @@ new Chart(document.getElementById('chart-received'), { ← {{ pc.sender_name or '-' }} {% endif %}
-
+
{% if pc.status == 'sent' and pc.send_time %} {% set delta = (now.date() - pc.send_time.date()).days %} @@ -141,6 +142,7 @@ new Chart(document.getElementById('chart-received'), { {% endif %}
+
{% endfor %}