summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-11-01 20:37:32 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-11-01 20:37:32 +0100
commit4c206f01c7ac8a4211560f1d75b1ba9c8ef8b624 (patch)
tree48a890a7a8e590c617634accd29ca9251b3eff6f /index.pl
parent6a6d4e52ffb2bd53539a4ab6356619ee4560bbf9 (diff)
clean template: mark cancelled departures with strike-through
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl17
1 files changed, 9 insertions, 8 deletions
diff --git a/index.pl b/index.pl
index 14c5381..ad17284 100644
--- a/index.pl
+++ b/index.pl
@@ -247,14 +247,15 @@ sub handle_request {
push(
@departures,
{
- time => $result->time,
- train => $result->train,
- via => [ $result->route_interesting(3) ],
- destination => $result->destination,
- platform => $platform,
- info => $info,
- moreinfo => $moreinfo,
- delay => $delay,
+ time => $result->time,
+ train => $result->train,
+ via => [ $result->route_interesting(3) ],
+ destination => $result->destination,
+ platform => $platform,
+ info => $info,
+ is_cancelled => $result->is_cancelled,
+ moreinfo => $moreinfo,
+ delay => $delay,
}
);
}