diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-12-05 19:34:10 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-12-05 19:34:10 +0100 |
commit | d8740e1bbab42e98a5d6dabc18254c9c60ada407 (patch) | |
tree | e26b1c6142a7d4b5218bb991674755368e07ce2c /index.pl | |
parent | d49d0978ca2a3617d74ae971418cd69c48b5ad17 (diff) |
index: also show additional stops in clean overview
Diffstat (limited to 'index.pl')
-rw-r--r-- | index.pl | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -241,6 +241,17 @@ sub handle_request { } $info .= $qosmsg; + if ( $result->additional_stops and not $result->is_cancelled ) { + my $additional_line = join( q{, }, $result->additional_stops ); + $info + = 'Zusätzliche Halte: ' + . $additional_line + . ( $info ? ' +++ ' : q{} ) + . $info; + push( @{$moreinfo}, + [ 'Zusätzliche Halte', $additional_line ] ); + } + if ( $result->canceled_stops and not $result->is_cancelled ) { my $cancel_line = join( q{, }, $result->canceled_stops ); $info @@ -251,12 +262,6 @@ sub handle_request { push( @{$moreinfo}, [ 'Ohne Halt in', $cancel_line ] ); } - if ( $result->additional_stops and not $result->is_cancelled ) { - my $additional_line = join( q{, }, $result->additional_stops ); - push( @{$moreinfo}, - [ 'Zusätzliche Halte', $additional_line ] ); - } - push( @{$moreinfo}, $result->messages ); } else { |