fix(ui): fix field name corruption (country_to_from -> country_from) and ensure all flag displays show country code

This commit is contained in:
2026-07-07 13:54:00 +08:00
parent fed060ea84
commit 599a95ee12
5 changed files with 13 additions and 13 deletions

View File

@@ -37,7 +37,7 @@
<img src="{{ pc.image_front }}" alt="" class="showcase-card-img" loading="lazy">
<div class="showcase-card-body">
<div class="showcase-card-meta">
{% if pc.country_to_from and pc.country_to %}<span>{{ pc.country_to_from|flag }} {{ pc.country_to_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>
{% endif %}
</div>