diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-05-02 11:15:53 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-05-02 11:15:53 +0200 |
commit | 2b795a4e87db14ca9e4e631e461171285db0d8b2 (patch) | |
tree | e6a5e6259b58e0c8581e14ac4fe920583bee0edf | |
parent | f692717e7148365813d3f65b7b350e6090159293 (diff) |
index: show replacement train information in template != clean as well
-rw-r--r-- | index.pl | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -250,6 +250,16 @@ sub handle_request { $result->delay, $delaymsg ? q{: } : q{}, $delaymsg ); } } + if ( $result->replacement_for and $template ne 'clean') { + for my $rep ($result->replacement_for) { + $info = sprintf('Ersatzzug für %s %s %s%s', + $rep->type, + $rep->train_no, + $info ? '+++ ' : q{}, + $info // q{} + ); + } + } if ( $info and $qosmsg ) { $info .= ' +++ '; } |