Show per-direction service counts for return journeys

Replace the combined "70 NR · 36 Eurostar" summary with separate
outbound/return lines so it's clear which counts belong to which leg.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Edward Betts 2026-05-21 14:47:33 +01:00
parent 4194e8fa64
commit b184e27a63

View file

@ -423,9 +423,18 @@
}
</script>
<p class="card-meta">
{{ gwr_count }} National Rail service{{ 's' if gwr_count != 1 }}
&nbsp;&middot;&nbsp;
{{ eurostar_count }} Eurostar service{{ 's' if eurostar_count != 1 }}
{% if journey_type == 'return' %}
{% for section in sections %}
{% if section.direction == 'outbound' %}Outbound{% else %}Return{% endif %}:
{{ section.gwr_count }} National Rail service{{ 's' if section.gwr_count != 1 }},
{{ section.eurostar_count }} Eurostar service{{ 's' if section.eurostar_count != 1 }}
{% if not loop.last %}&nbsp;&middot;&nbsp;{% endif %}
{% endfor %}
{% else %}
{{ gwr_count }} National Rail service{{ 's' if gwr_count != 1 }}
&nbsp;&middot;&nbsp;
{{ eurostar_count }} Eurostar service{{ 's' if eurostar_count != 1 }}
{% endif %}
{% if from_cache %}
&nbsp;&middot;&nbsp; <span class="text-muted text-sm">(cached)</span>
{% endif %}