diff --git a/ft-app/app/templates/trades.html b/ft-app/app/templates/trades.html
index 0878034..1b53475 100644
--- a/ft-app/app/templates/trades.html
+++ b/ft-app/app/templates/trades.html
@@ -94,7 +94,9 @@
全部
{% for pc in product_codes %}
{% set count = grouped_open.get(pc, [])|length %}
- {{ pc }}{% if count %} · {{ count }}{% endif %}
+ {% if count %}
+ {{ pc }} · {{ count }}
+ {% endif %}
{% endfor %}
@@ -217,7 +219,9 @@
全部
{% for pc in product_codes %}
{% set count = grouped_closed.get(pc, [])|length %}
- {{ pc }}{% if count %} · {{ count }}{% endif %}
+ {% if count %}
+ {{ pc }} · {{ count }}
+ {% endif %}
{% endfor %}