diff options
| -rwxr-xr-x | index.pl | 3 | ||||
| -rw-r--r-- | templates/departures.html.ep | 10 | ||||
| -rw-r--r-- | templates/landingpage.html.ep | 2 | 
3 files changed, 12 insertions, 3 deletions
| @@ -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 6a6f159..272a94d 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 4397a15..bf5de90 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; | 
