summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-05-02 11:15:53 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-05-02 11:15:53 +0200
commit2b795a4e87db14ca9e4e631e461171285db0d8b2 (patch)
treee6a5e6259b58e0c8581e14ac4fe920583bee0edf /index.pl
parentf692717e7148365813d3f65b7b350e6090159293 (diff)
index: show replacement train information in template != clean as well
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index f779291..652ea60 100644
--- a/index.pl
+++ b/index.pl
@@ -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 .= ' +++ ';
}