summaryrefslogtreecommitdiff
path: root/templates/_checked_in.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-11-19 21:37:49 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-11-19 21:37:49 +0100
commitd0b89ba6d39c43788775593a107ae582039434da (patch)
tree17c38f61e525ea43b8c3271cad9e08ed56f636a9 /templates/_checked_in.html.ep
parent285c83c7c074b6ab8c7eb53d1cb8483ed986fe8d (diff)
Handle missing arrival times in route (indicates 'entry only' stops)1.26.2
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r--templates/_checked_in.html.ep16
1 files changed, 8 insertions, 8 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index 2b6ac90..ec4e8ae 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -227,11 +227,11 @@
% if ($station->[2] and $station->[2] eq 'cancelled') {
entfällt
% }
- % elsif ($station->[1]{rt_arr}) {
- <%= $station->[1]{rt_arr}->strftime('%H:%M') %>
+ % elsif ($station->[1]{rt_arr} or $station->[1]{sched_arr}) {
+ %= ($station->[1]{rt_arr} || $station->[1]{sched_arr})->strftime('%H:%M')
% }
- % elsif ($station->[1]{sched_arr}) {
- <%= $station->[1]{sched_arr}->strftime('%H:%M') %>
+ % elsif ($station->[1]{rt_dep} or $station->[1]{sched_dep}) {
+ (<%= ($station->[1]{rt_dep} || $station->[1]{sched_dep})->strftime('%H:%M') %>)
% }
% elsif ($station->[2] and $station->[2] eq 'additional') {
Zusatzhalt
@@ -342,11 +342,11 @@
% if ($station->[2] and $station->[2] eq 'cancelled') {
entfällt
% }
- % elsif ($station->[1]{rt_arr}) {
- <%= $station->[1]{rt_arr}->strftime('%H:%M') %>
+ % elsif ($station->[1]{rt_arr} or $station->[1]{sched_arr}) {
+ %= ($station->[1]{rt_arr} || $station->[1]{sched_arr})->strftime('%H:%M')
% }
- % elsif ($station->[1]{sched_arr}) {
- <%= $station->[1]{sched_arr}->strftime('%H:%M') %>
+ % elsif ($station->[1]{rt_dep} or $station->[1]{sched_dep}) {
+ (<%= ($station->[1]{rt_dep} || $station->[1]{sched_dep})->strftime('%H:%M') %>)
% }
% elsif ($station->[2] and $station->[2] eq 'additional') {
Zusatzhalt