diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-01-21 16:29:18 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-01-21 16:29:18 +0100 |
commit | 32afee9946595dc615ea1c78ae184a6e13a9722e (patch) | |
tree | 157eea04bd242e76e75b6d3f51b4dbee9732de4e /index.pl | |
parent | 7d0a0942ac90dd6fce9c4e9122c654a75c22b591 (diff) |
show real station name in title
Diffstat (limited to 'index.pl')
-rw-r--r-- | index.pl | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -80,8 +80,9 @@ sub get_results_for { %opt ); $data = { - results => [ $status->results ], - errstr => $status->errstr, + results => [ $status->results ], + errstr => $status->errstr, + station_name => $status->station->{name}, }; } elsif ( $backend eq 'ris' ) { @@ -753,11 +754,12 @@ sub handle_request { } } else { + my $station_name = $data->{station_name} // $station; $self->render( $template, departures => \@departures, version => $VERSION, - title => "Abfahrtsmonitor ${station}", + title => "Abfahrtsmonitor $station_name", refresh_interval => $refresh_interval + 3, hide_opts => $hide_opts, hide_low_delay => $hide_low_delay, |