From 7a9ce677f333bb0aa0d3a2cd4708aa9ec671c22b Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 2 Sep 2023 12:03:19 +0200 Subject: train details: re-add replacement / replaced info --- templates/_train_details.html.ep | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 039a0b4..2ed3dd4 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -17,28 +17,6 @@ % } <%= $departure->{destination} // q{???} %> -
@@ -74,6 +52,16 @@
+% if (@{$departure->{replaced_by}}) { +% for my $replacement (@{$departure->{replaced_by}}) { + Ersatzfahrt: <%= $replacement %>
+% } +% } +% if (@{$departure->{replacement_for}}) { +% for my $replacement (@{$departure->{replacement_for}}) { + Ersatzfahrt für <%= $replacement %>
+% } +% } % if ($departure->{arrival_is_cancelled} and $departure->{departure_is_cancelled}) { Fahrt fällt aus % } -- cgit v1.2.3