From 36121ccffc8dc65b27bcfbe1299fb6a7f9a5f77c Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 24 Jun 2019 18:02:45 +0200 Subject: show wagon order before departure --- templates/_checked_in.html.ep | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'templates/_checked_in.html.ep') diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 91cd37a..0f1dcb2 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -44,6 +44,16 @@ % if ($journey->{departure_countdown} > 0 and $journey->{dep_platform}) {
von Gleis <%= $journey->{dep_platform} %> % } + % if (my $wr = $journey->{wagonorder}) { +
+ %= $wr->direction == 100 ? '→' : '←'; + % for my $wagon ($wr->wagons) { + % if (not ($wagon->is_locomotive or $wagon->is_powercar)) { + %= $wagon->number || $wagon->type + % } + % } + %= $wr->direction == 100 ? '→' : '←'; + % }
-- cgit v1.2.3