diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-10-26 18:04:15 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-10-26 18:04:15 +0100 |
commit | 1602007dbb5644ea68b80ad3ba40f8a8aad8bca7 (patch) | |
tree | ca275b5e820fd4ea4d0ef9f2845f939e75138f99 /index.pl | |
parent | ec9dad579ba316b2db46a9ea3377836be290f157 (diff) |
index: IRIS backend: show canceled stops
Diffstat (limited to 'index.pl')
-rw-r--r-- | index.pl | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -78,7 +78,11 @@ sub handle_request { } if ( not $station ) { - $self->render( $template, hide_opts => 0, show_intro => 1 ); + $self->render( + $template, + hide_opts => 0, + show_intro => 1 + ); return; } @@ -200,7 +204,17 @@ sub handle_request { } $info .= $qosmsg; - $moreinfo = [ $result->messages ]; + if ( $result->canceled_stops ) { + my $cancel_line = join( q{, }, $result->canceled_stops ); + $info + = 'Ohne Halt in: ' + . $cancel_line + . ( $info ? ' +++ ' : q{} ) + . $info; + push( @{$moreinfo}, [ 'Ohne Halt in', $cancel_line ] ); + } + + push( @{$moreinfo}, $result->messages ); } else { $info = $result->info; |