Relabel inbound circle line services: Circle (aim for) and next (fallback)

Consistent with outbound labelling. The first service is the one to aim
for if the Eurostar arrives slightly early; the second is dimmed as it
may not leave enough time for the GWR connection.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Edward Betts 2026-05-21 18:48:14 +01:00
parent 5910bae33b
commit 2f554b9ca0
2 changed files with 4 additions and 4 deletions

View file

@ -545,8 +545,8 @@
{% if row.circle_services | length > 1 %}
{% set c_early = row.circle_services[0] %}
{% set c = row.circle_services[1] %}
<br><span class="text-xs text-muted nowrap" style="opacity:0.7">earlier {{ c_early.depart }} &rarr; PAD {{ c_early.arrive_pad }} · £{{ "%.2f"|format(c_early.fare) }}</span>
<br><span class="text-xs text-muted nowrap">Circle {{ c.depart }} &rarr; PAD {{ c.arrive_pad }} · £{{ "%.2f"|format(c.fare) }}</span>
<br><span class="text-xs text-muted nowrap">Circle {{ c_early.depart }} &rarr; PAD {{ c_early.arrive_pad }} · £{{ "%.2f"|format(c_early.fare) }}</span>
<br><span class="text-xs text-muted nowrap" style="opacity:0.7">next {{ c.depart }} &rarr; PAD {{ c.arrive_pad }}</span>
{% else %}
{% set c = row.circle_services[0] %}
<br><span class="text-xs text-muted nowrap">Circle {{ c.depart }} &rarr; PAD {{ c.arrive_pad }} · £{{ "%.2f"|format(c.fare) }}</span>

View file

@ -629,8 +629,8 @@ def test_results_return_renders_outbound_and_inbound_tables(monkeypatch):
assert 'return_date=2026-04-17' not in html
assert 'Circle 09:10 &rarr; KX 09:25' in html
assert 'next 09:15 &rarr; KX 09:30' in html
assert 'earlier 16:40 &rarr; PAD 16:55' in html
assert 'Circle 16:45 &rarr; PAD 17:00' in html
assert 'Circle 16:40 &rarr; PAD 16:55' in html
assert 'next 16:45 &rarr; PAD 17:00' in html
assert 'title="Tight connection">⚠️</span>' in html
assert 'ES 9014' in html
assert 'ES 9035' in html