summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-09-19 11:39:46 +0200
committerDaniel Friesel <derf@finalrewind.org>2020-09-19 11:39:46 +0200
commitf7d4515b98c21d9b9a12765ac3d558bae0324e78 (patch)
tree59a284ee1e846400fbd14a44c9b2bb73d0daa21a
parent1c68e7dcd6c5569569f4c320cfbd4625ec137994 (diff)
train details: insert linebreaks for overlong headings
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm5
-rw-r--r--templates/_train_details.html.ep3
2 files changed, 7 insertions, 1 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 3ac56d0..c79a743 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -357,7 +357,10 @@ sub format_iris_result_info {
. ( $info ? ' +++ ' : q{} )
. $info;
if ( $template ne 'json' ) {
- push( @{$moreinfo}, [ 'Zusätzliche Halte', $additional_line ] );
+ push(
+ @{$moreinfo},
+ [ 'Außerplanmäßiger Halt in', $additional_line ]
+ );
}
}
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 5feb8a6..f713094 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -128,6 +128,9 @@
% }
% else {
%= $pair->[0]
+% if (length($pair->[0]) > 25) {
+ <br/>
+% }
% }
<span class="reason">
%= $pair->[1]