From 2c5e7e8d20b58e9581f8028e273289e893b673ea Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 12 Jan 2021 19:27:34 +0100 Subject: update ice type map; use SVG cycle links --- templates/_train_details.html.ep | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'templates') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 6bd318f..8459e65 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -228,10 +228,10 @@ % } % } -% if (param('detailed') and $departure->{has_cycle}) { +% if ($departure->{has_cycle}) {
Umlaufplan
% } -% if (param('detailed') and $details->{commonAttr}) { +% if ($details->{commonAttr}) { % if ($details->{attrVariants} and (not $details->{commonAttr}{vmax} or not $details->{commonAttr}{brakingPercentage})) {
Attribute: @@ -248,15 +248,15 @@
% } % } -% if (param('detailed') and $details and not $departure->{arrival}) { +% if ($details and not $departure->{arrival}) { % if (my $s = $details->{route}{preStart}) { Zug wird voraussichtlich aus <%= $s %> eingesetzt.

% } -% if ($details->{cycle}{from}) { +% if (@{$departure->{cycle_from} // []}) { Bildung möglicherweise aus % } % } -% elsif (param('detailed') and $details and not $departure->{departure}) { +% elsif ($details and not $departure->{departure}) { % if (my $e = $details->{route}{postEnd}) { Zug wird voraussichtlich in <%= $e %> abgestellt.

% } -% if ($details->{cycle}{to}) { +% if (@{$departure->{cycle_to} // []}) { Weiterfahrt möglicherweise als