From 90d2e0357cb41020dfdec3a594956d14c3f276af Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 12 Nov 2022 18:37:00 +0100 Subject: show expected load of suggested connections, if available --- templates/_connections.html.ep | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'templates/_connections.html.ep') diff --git a/templates/_connections.html.ep b/templates/_connections.html.ep index 913de73..e4f1872 100644 --- a/templates/_connections.html.ep +++ b/templates/_connections.html.ep @@ -1,6 +1,6 @@
% for my $res (@{$connections}) { - % my ($train, $via, $via_arr) = @{$res}; + % my ($train, $via, $via_arr, $load) = @{$res}; % $via_arr = $via_arr ? $via_arr->strftime('%H:%M') : q{}; % my $td_class = ''; % my $link_class = 'action-checkin'; @@ -39,6 +39,10 @@ %= $via % }
+ % if ($load) { + % my ($first, $second) = load_icon($load); + + % } % if ($train->{interchange_icon}) { <%= $train->{interchange_icon} %> % } @@ -46,7 +50,7 @@ warning % } % if ($train->{message_id}{82} or $train->{message_id}{85}) { - people + remove % } % if (($train->{message_id}{73} or $train->{message_id}{74} or $train->{message_id}{75} or $train->{message_id}{76} or $train->{message_id}{80}) and not $train->{message_id}{84}) { compare_arrows -- cgit v1.2.3