summaryrefslogtreecommitdiff
path: root/templates/_train_details.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-10-29 13:04:01 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-10-29 13:04:01 +0200
commitdaa8cc5a72bd10d732912595bf0ca2ad3bf167c4 (patch)
tree1455129763e0070dc77ec5880b1c32f64b7d2abe /templates/_train_details.html.ep
parent3f4fc57ba097ce969031ab1a1398d4bb657ca056 (diff)
use T-S-DE-HAFAS for train details
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r--templates/_train_details.html.ep6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 5bd42c9..e5d5c72 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -165,7 +165,7 @@
<ul class="messages">
% for my $pair (@{$departure->{moreinfo}}) {
<li>
-% if ($pair->[0]->isa('DateTime')) {
+% if (ref($pair->[0]) eq 'DateTime') {
% if ($pair->[0]->day != $dt_now->day) {
% $pair->[0]->set_locale('de_DE');
%= $pair->[0]->strftime('%a %H:%M')
@@ -214,7 +214,7 @@
% else {
generic-stop
% }
-% if ($stop->{rt_dep}) {
+% if ($stop->{rt_dep} and $stop->{dep_delay}) {
"><%= $stop->{sched_dep}->strftime('%H:%M') %> (heute <%= $stop->{rt_dep}->strftime('%H:%M') %>) <%= $stop->{name} %></a>
% }
% else {
@@ -259,7 +259,7 @@
% else {
generic-stop
% }
-% if ($stop->{rt_arr}) {
+% if ($stop->{rt_arr} and $stop->{arr_delay}) {
"><%= $stop->{sched_arr}->strftime('%H:%M') %> (heute <%= $stop->{rt_arr}->strftime('%H:%M') %>) <%= $stop->{name} %></a>
% }
% else {