summaryrefslogtreecommitdiff
path: root/cgi/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-06-28 16:57:30 +0200
committerDaniel Friesel <derf@finalrewind.org>2014-06-28 16:57:30 +0200
commit84eb1561ee2d78f2e30b1c9011cae7cb010f0959 (patch)
tree50a48d8f2cd591a8220a618fab8bc3c4dfcc81aa /cgi/index.pl
parentaa04ebaab633b41216db59007821d6ac64a87932 (diff)
clean template: Show detail RIS / IRIS messages when hovering over a departure
Diffstat (limited to 'cgi/index.pl')
-rw-r--r--cgi/index.pl8
1 files changed, 7 insertions, 1 deletions
diff --git a/cgi/index.pl b/cgi/index.pl
index 1613438..83a3e30 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -132,7 +132,7 @@ sub handle_request {
if ( @lines and not( any { $line =~ m{^$_} } @lines ) ) {
next;
}
- my $info;
+ my ( $info, $moreinfo );
if ( $backend eq 'iris' ) {
my $delaymsg
= join( ', ', map { $_->[1] } $result->delay_messages );
@@ -154,9 +154,14 @@ sub handle_request {
$info .= ' +++ ';
}
$info .= $qosmsg;
+
+ $moreinfo = [ $result->messages ];
}
else {
$info = $result->info;
+ if ($info) {
+ $moreinfo = [ [ 'RIS', $info ] ];
+ }
}
if ( $info eq '+0' ) {
@@ -183,6 +188,7 @@ sub handle_request {
destination => $result->destination,
platform => $platform,
info => $info,
+ moreinfo => $moreinfo,
delay => $delay,
}
);