fix(dashboard): put time in its own column on the right side
This commit is contained in:
@@ -117,8 +117,9 @@ new Chart(document.getElementById('chart-received'), {
|
|||||||
<strong>{{ pc.card_number }}</strong>
|
<strong>{{ pc.card_number }}</strong>
|
||||||
<span class="badge badge-{{ pc.status }}">{{ {'sent':'已寄出','delivered':'已送达','received':'已收到'}.get(pc.status) if user.language=='zh' else {'sent':'Sent','delivered':'Delivered','received':'Received'}.get(pc.status) }}</span>
|
<span class="badge badge-{{ pc.status }}">{{ {'sent':'已寄出','delivered':'已送达','received':'已收到'}.get(pc.status) if user.language=='zh' else {'sent':'Sent','delivered':'Delivered','received':'Received'}.get(pc.status) }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="margin-left:auto;text-align:right">
|
<div style="margin-left:auto;text-align:right;display:flex;gap:1rem;align-items:center">
|
||||||
<div class="recent-meta">
|
<div>
|
||||||
|
<div class="recent-meta" style="margin-left:0">
|
||||||
{% if pc.country_from and pc.country_to %}<span>{{ pc.country_from|flag }} {{ pc.country_from }} → {{ pc.country_to|flag }} {{ pc.country_to }}</span>
|
{% if pc.country_from and pc.country_to %}<span>{{ pc.country_from|flag }} {{ pc.country_from }} → {{ pc.country_to|flag }} {{ pc.country_to }}</span>
|
||||||
{% elif pc.country_to %}<span>{{ pc.country_to|flag }} {{ pc.country_to }}</span>
|
{% elif pc.country_to %}<span>{{ pc.country_to|flag }} {{ pc.country_to }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -129,6 +130,9 @@ new Chart(document.getElementById('chart-received'), {
|
|||||||
{% else %}
|
{% else %}
|
||||||
<span>← {{ pc.sender_name or '-' }}</span>
|
<span>← {{ pc.sender_name or '-' }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="recent-meta" style="margin-left:0">
|
||||||
<span class="recent-time">
|
<span class="recent-time">
|
||||||
{% if pc.status == 'sent' and pc.send_time %}
|
{% if pc.status == 'sent' and pc.send_time %}
|
||||||
{% set delta = (now.date() - pc.send_time.date()).days %}
|
{% set delta = (now.date() - pc.send_time.date()).days %}
|
||||||
|
|||||||
Reference in New Issue
Block a user