diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-01-21 10:46:11 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-01-21 10:46:11 +0100 |
commit | dc89b1dcc52878a404b9b91d8103ebc5e52feb9a (patch) | |
tree | 87ef84a9d9c4c80eed5b1922e0648c343e99363b /templates/clean.html.ep | |
parent | f3679cb23f0d514169f25637f79c2f9ac6101e20 (diff) |
show arrival and departure times in detailed mode
Diffstat (limited to 'templates/clean.html.ep')
-rw-r--r-- | templates/clean.html.ep | 19 |
1 files changed, 18 insertions, 1 deletions
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 @@ </span> <span class="time <%= ($show_realtime and $departure->{delay} and not $departure->{is_cancelled}) ? 'delayed' : q{} %> <%= $extraclasses %>"> -%= $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} +% } </span> </li> |