diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2022-11-19 21:37:49 +0100 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2022-11-19 21:37:49 +0100 | 
| commit | d0b89ba6d39c43788775593a107ae582039434da (patch) | |
| tree | 17c38f61e525ea43b8c3271cad9e08ed56f636a9 | |
| parent | 285c83c7c074b6ab8c7eb53d1cb8483ed986fe8d (diff) | |
Handle missing arrival times in route (indicates 'entry only' stops)1.26.2
| -rw-r--r-- | templates/_checked_in.html.ep | 16 | ||||
| -rw-r--r-- | templates/legend.html.ep | 6 | 
2 files changed, 13 insertions, 9 deletions
| diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 2b6ac90..ec4e8ae 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -227,11 +227,11 @@  							% if ($station->[2] and $station->[2] eq 'cancelled') {  								entfällt  							% } -							% elsif ($station->[1]{rt_arr}) { -								<%= $station->[1]{rt_arr}->strftime('%H:%M') %> +							% elsif ($station->[1]{rt_arr} or $station->[1]{sched_arr}) { +								%= ($station->[1]{rt_arr} || $station->[1]{sched_arr})->strftime('%H:%M')  							% } -							% elsif ($station->[1]{sched_arr}) { -								<%= $station->[1]{sched_arr}->strftime('%H:%M') %> +							% elsif ($station->[1]{rt_dep} or $station->[1]{sched_dep}) { +								(<%= ($station->[1]{rt_dep} || $station->[1]{sched_dep})->strftime('%H:%M') %>)  							% }  							% elsif ($station->[2] and $station->[2] eq 'additional') {  								Zusatzhalt @@ -342,11 +342,11 @@  						% if ($station->[2] and $station->[2] eq 'cancelled') {  							entfällt  						% } -						% elsif ($station->[1]{rt_arr}) { -							<%= $station->[1]{rt_arr}->strftime('%H:%M') %> +						% elsif ($station->[1]{rt_arr} or $station->[1]{sched_arr}) { +							%= ($station->[1]{rt_arr} || $station->[1]{sched_arr})->strftime('%H:%M')  						% } -						% elsif ($station->[1]{sched_arr}) { -							<%= $station->[1]{sched_arr}->strftime('%H:%M') %> +						% elsif ($station->[1]{rt_dep} or $station->[1]{sched_dep}) { +							(<%= ($station->[1]{rt_dep} || $station->[1]{sched_dep})->strftime('%H:%M') %>)  						% }  						% elsif ($station->[2] and $station->[2] eq 'additional') {  							Zusatzhalt diff --git a/templates/legend.html.ep b/templates/legend.html.ep index 83d533e..3b4e7d0 100644 --- a/templates/legend.html.ep +++ b/templates/legend.html.ep @@ -2,13 +2,17 @@  	<div class="col s12">  		<h2>Legende</h2>  		<p>travelynx verwendet bei Angaben zu Zügen und Stationen die folgenden Symbole.</p> -		<h3>Abfahrtstafel</h3> +		<h3>Abfahrtstafel und Route</h3>  		<table class="striped">  			<tbody>  				<tr>  					<td><i class="material-icons">gps_off</i></td>  					<td>Keine Echtzeitdaten vorhanden. Bei den angegebenen Zeiten handelt es sich um Angaben aus dem Fahrplan.</td>  				</tr> +				<tr> +					<td>(HH:MM)</td> +					<td>Route: Ein Ausstieg ist an dieser Station möglicherweise nicht vorgesehen.</td> +				</tr>  			</tbody>  		</table>  		<h3>Anschlusszüge</h3> | 
