summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-09-11 06:52:57 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2022-09-11 06:52:57 +0200
commit4849b16efc9c7215b474fd02f896cc9c5d14fd03 (patch)
tree20712fb64fe3c02acade623ea0f64d15aa84cf10
parentb50d2fbc61eedad51711c0b2f6091f96d75006f7 (diff)
train details: add an icon for construction work4.11.2
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index b986ff7..7b66dbc 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -808,9 +808,12 @@ sub render_train {
if ( $m->[0] =~ s{: Information.}{: } ) {
$m->[1]{icon} = 'info_outline';
}
- if ( $m->[0] =~ s{: Störung.}{: } ) {
+ elsif ( $m->[0] =~ s{: Störung.}{: } ) {
$m->[1]{icon} = 'warning';
}
+ elsif ( $m->[0] =~ s{: Bauarbeiten.}{: } ) {
+ $m->[1]{icon} = 'build';
+ }
}
unshift( @{ $departure->{moreinfo} }, @him_messages );
}
@@ -1086,9 +1089,12 @@ sub train_details {
if ( $m->[0] =~ s{: Information.}{:} ) {
$m->[1]{icon} = 'info_outline';
}
- if ( $m->[0] =~ s{: Störung.}{: } ) {
+ elsif ( $m->[0] =~ s{: Störung.}{: } ) {
$m->[1]{icon} = 'warning';
}
+ elsif ( $m->[0] =~ s{: Bauarbeiten.}{: } ) {
+ $m->[1]{icon} = 'build';
+ }
}
$res->{moreinfo} = [@him_messages];
}