summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.pl1
-rw-r--r--templates/clean.html.ep4
2 files changed, 4 insertions, 1 deletions
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 {
<span class="train-line"><%= $departure->{train_no} // q{???} %></span>
% }
+% if ($departure->{origin}) {
:
-<span class="train-origin"><%= $departure->{origin} // q{???} %></span>
+<span class="train-origin"><%= $departure->{origin} %></span>
+% }
<span class="train-dest"><%= $departure->{destination} // q{???} %></span>
% if ($departure->{is_cancelled}) {