diff --git a/index.pl b/index.pl index d0e29c6243a31d68838df6f14360acdb153b0a16..fc629eeb81379197705d3e77d6ac83e68a924cca 100755 --- a/index.pl +++ b/index.pl @@ -1271,7 +1271,8 @@ get '/s/*station' => sub { 'departures', ds100 => $status->{station_ds100}, results => \@results, - station => $status->{station_name} + station => $status->{station_name}, + title => "travelynx: $status->{station_name}", ); } }; diff --git a/templates/departures.html.ep b/templates/departures.html.ep index 6a6f1595e408f3d77e49d7bea82e715f50b51d1f..272a94dca357e02460a088194d65fe73cd9d1567 100644 --- a/templates/departures.html.ep +++ b/templates/departures.html.ep @@ -33,7 +33,15 @@ </div> <div class="row"> <div class="col s12"> - Zug auswählen zum Einchecken.<br/> + %= $station + % if (@{$results}) { + – Zug auswählen zum Einchecken. + % } + % else { + – Keine Abfahrten gefunden. Ein Checkin ist frühestens 10 Minuten vor + und maximal 180 Minuten nach Abfahrt möglich. + % } + <br/> <table class="striped"> <thead> <tr> diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index 4397a150d1847fa10a8e34ac5739307f57b21513..bf5de90ae0718768884d1430d48d028f4406a235 100644 --- a/templates/landingpage.html.ep +++ b/templates/landingpage.html.ep @@ -13,7 +13,7 @@ <a class="action-undo"><i class="material-icons">undo</i> Rückgängig</a> % } </p> - <p>Bei Ankunft am Zielbahnhof: Auswählen zum Auschecken.</p> + <p>Bei Ankunft: Station auswählen zum Auschecken.</p> <table> <tbody> % my $is_after = 0;