From 03461898e27f0644c78ed973a6cccb0a54b9664e Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 9 May 2015 17:01:50 +0200 Subject: ris backend: add train_type information --- index.pl | 1 + templates/clean.html.ep | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/index.pl b/index.pl index 6532efd..1e709a2 100644 --- a/index.pl +++ b/index.pl @@ -481,6 +481,7 @@ sub handle_request { { time => $time, train => $result->train, + train_type => $result->type, via => [ $result->route_interesting(3) ], destination => $result->destination, platform => $platform, diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 69f954f..bc1fc7c 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -45,8 +45,10 @@ % else { <%= $departure->{train_no} // q{???} %> % } +% if ($departure->{origin}) { : -<%= $departure->{origin} // q{???} %> +<%= $departure->{origin} %> +% } → <%= $departure->{destination} // q{???} %> % if ($departure->{is_cancelled}) { -- cgit v1.2.3