From 453f882db8c4accc2a65a8c49652c1ca7f7b2eb8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 12 Dec 2020 07:01:27 +0100 Subject: distinguish arrival-only trains from departures --- templates/app.html.ep | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'templates/app.html.ep') diff --git a/templates/app.html.ep b/templates/app.html.ep index ec36f03..045ba88 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -83,9 +83,16 @@ % } % } - -%= $departure->{destination} - +% if (@{$departure->{route_post} // [] }) { + +%= $departure->{destination} + +% } +% else { + +%= $departure->{origin} + +% } % if (param('detailed')) { -- cgit v1.2.3