diff options
-rw-r--r-- | index.pl | 1 | ||||
-rw-r--r-- | templates/clean.html.ep | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -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}) { |