From f7d4515b98c21d9b9a12765ac3d558bae0324e78 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 19 Sep 2020 11:39:46 +0200 Subject: train details: insert linebreaks for overlong headings --- lib/DBInfoscreen/Controller/Stationboard.pm | 5 ++++- templates/_train_details.html.ep | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) 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) { +
+% } % } %= $pair->[1] -- cgit v1.2.3