summaryrefslogtreecommitdiff
path: root/templates/_train_details.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-02-05 12:38:42 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-02-05 12:38:42 +0100
commit163e0ffdd560896edb5f91a602f5b1586f46f110 (patch)
tree67a659f7238b3b2fce4c3e462325956237816cb1 /templates/_train_details.html.ep
parent6b0dbedeece748c31dff7b190e75ebab66603a74 (diff)
train details: handle trains that only have sched_ times (hello, hafas)
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r--templates/_train_details.html.ep6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 05e3483..82f0257 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -64,6 +64,9 @@
An: <%= $departure->{arrival} %>
% }
% }
+% elsif ($departure->{sched_arrival}) {
+ An: <%= $departure->{sched_arrival} %>
+% }
% elsif ($departure->{prep_time}) {
Ein: <%= $departure->{prep_time} %>
% }
@@ -116,6 +119,9 @@
Ab: <%= $departure->{departure} %>
% }
% }
+% elsif ($departure->{sched_departure}) {
+ Ab: <%= $departure->{sched_departure} %>
+% }
</div>
</div>
</div> <!-- dataline -->