diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2023-02-05 12:38:42 +0100 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2023-02-05 12:38:42 +0100 | 
| commit | 163e0ffdd560896edb5f91a602f5b1586f46f110 (patch) | |
| tree | 67a659f7238b3b2fce4c3e462325956237816cb1 | |
| parent | 6b0dbedeece748c31dff7b190e75ebab66603a74 (diff) | |
train details: handle trains that only have sched_ times (hello, hafas)
| -rw-r--r-- | templates/_train_details.html.ep | 6 | 
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 --> | 
