show QoS pictograms in connection list
This commit is contained in:
parent
adaf9f7c0c
commit
e6b74ef087
2 changed files with 38 additions and 0 deletions
|
@ -2869,6 +2869,13 @@ sub startup {
|
||||||
sort { $a->[1] <=> $b->[1] }
|
sort { $a->[1] <=> $b->[1] }
|
||||||
map { [ $_, $_->[0]->sched_departure->epoch ] } @cancellations;
|
map { [ $_, $_->[0]->sched_departure->epoch ] } @cancellations;
|
||||||
|
|
||||||
|
for my $result (@results) {
|
||||||
|
my $train = $result->[0];
|
||||||
|
my @message_ids
|
||||||
|
= List::Util::uniq map { $_->[1] } $train->raw_messages;
|
||||||
|
$train->{message_id} = { map { $_ => 1 } @message_ids };
|
||||||
|
}
|
||||||
|
|
||||||
return ( @results, @cancellations );
|
return ( @results, @cancellations );
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
@ -23,6 +23,22 @@
|
||||||
% else {
|
% else {
|
||||||
%= $via
|
%= $via
|
||||||
% }
|
% }
|
||||||
|
<br/>
|
||||||
|
% if ($train->{message_id}{70} or $train->{message_id}{71}) {
|
||||||
|
<i class="material-icons" aria-label="Ohne WLAN">portable_wifi_off</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" aria-label="Abweichende Wagenreihung">transfer_within_a_station</i>
|
||||||
|
% }
|
||||||
|
% if ($train->{message_id}{83} or $train->{message_id}{93} or $train->{message_id}{95}) {
|
||||||
|
<i class="material-icons" aria-label="Eingeschränkte Barrierefreiheit">info_outline</i>
|
||||||
|
% }
|
||||||
|
% if ($train->{message_id}{82} or $train->{message_id}{85}) {
|
||||||
|
<i class="material-icons" aria-label="Fehlende Wagen">people</i>
|
||||||
|
% }
|
||||||
|
% if ($train->{message_id}{96} or $train->{message_id}{97}) {
|
||||||
|
<i class="material-icons" aria-label="Zug ist überbesetzt">warning</i>
|
||||||
|
% }
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
% if ($train->departure_is_cancelled) {
|
% if ($train->departure_is_cancelled) {
|
||||||
|
@ -65,6 +81,21 @@
|
||||||
% else {
|
% else {
|
||||||
%= $via
|
%= $via
|
||||||
% }
|
% }
|
||||||
|
% if ($train->{message_id}{70} or $train->{message_id}{71}) {
|
||||||
|
<i class="material-icons" aria-label="Ohne WLAN">portable_wifi_off</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" aria-label="Abweichende Wagenreihung">transfer_within_a_station</i>
|
||||||
|
% }
|
||||||
|
% if ($train->{message_id}{83} or $train->{message_id}{93} or $train->{message_id}{95}) {
|
||||||
|
<i class="material-icons" aria-label="Eingeschränkte Barrierefreiheit">info_outline</i>
|
||||||
|
% }
|
||||||
|
% if ($train->{message_id}{82} or $train->{message_id}{85}) {
|
||||||
|
<i class="material-icons" aria-label="Fehlende Wagen">people</i>
|
||||||
|
% }
|
||||||
|
% if ($train->{message_id}{96} or $train->{message_id}{97}) {
|
||||||
|
<i class="material-icons" aria-label="Zug ist überbesetzt">warning</i>
|
||||||
|
% }
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
% if ($train->departure_is_cancelled) {
|
% if ($train->departure_is_cancelled) {
|
||||||
|
|
Loading…
Reference in a new issue