From dc89b1dcc52878a404b9b91d8103ebc5e52feb9a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 21 Jan 2018 10:46:11 +0100 Subject: show arrival and departure times in detailed mode --- templates/clean.html.ep | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'templates/clean.html.ep') diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 0802cde..3c36965 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -242,7 +242,24 @@ -%= $departure->{time} +% if (param('detailed')) { +% my $arrow = '→'; +% if (not $departure->{sched_arrival}) { +% $arrow = '↦'; +% } +% elsif (not $departure->{sched_departure}) { +% $arrow = '⇥'; +% } +% if ($show_realtime) { +%= ($departure->{arrival} // q{}) . $arrow . ($departure->{departure} // q{}) +% } +% else { +%= ($departure->{sched_arrival} // q{}) . $arrow . ($departure->{sched_departure} // q{}) +% } +% } +% else { +%= $departure->{time} +% } -- cgit v1.2.3