diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-11-12 18:37:00 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-11-12 18:37:00 +0100 |
commit | 90d2e0357cb41020dfdec3a594956d14c3f276af (patch) | |
tree | 591159f22b00e1e324533118d787ae751d2cde62 /templates/_connections.html.ep | |
parent | 8bb803366a5fc4d781ede2e5c3de33bb7a2a5a60 (diff) |
show expected load of suggested connections, if available
Diffstat (limited to 'templates/_connections.html.ep')
-rw-r--r-- | templates/_connections.html.ep | 8 |
1 files changed, 6 insertions, 2 deletions
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 @@ <div><table class="striped"><tbody> % 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 % } <br/> + % if ($load) { + % my ($first, $second) = load_icon($load); + <i class="material-icons tiny" aria-hidden="true"><%= $first %></i> <i class="material-icons tiny" aria-hidden="true"><%= $second %></i> + % } % if ($train->{interchange_icon}) { <i class="material-icons tiny" aria-label="<%= $train->{interchange_text} %>"><%= $train->{interchange_icon} %></i> % } @@ -46,7 +50,7 @@ <i class="material-icons tiny" aria-label="Zug ist überbesetzt">warning</i> % } % if ($train->{message_id}{82} or $train->{message_id}{85}) { - <i class="material-icons tiny" aria-label="Fehlende Wagen">people</i> + <i class="material-icons tiny" aria-label="Fehlende Wagen">remove</i> % } % 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}) { <i class="material-icons tiny" aria-label="Abweichende Wagenreihung">compare_arrows</i> |