diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2022-09-24 18:51:23 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2022-09-24 18:51:23 +0200 | 
| commit | 1c7779e94ef6859348570b9c1b5f2f8a27e32c1f (patch) | |
| tree | 022b8703cef6aa34efd8fe3d6fc56cfe4ef8e72a | |
| parent | cd99bd6354efeb8fe60ef2d4bec1915dd8a4421a (diff) | |
connections: move departure time to line
this way, departure time is left of arrival at destination, hopefully
minimizing confusion
| -rw-r--r-- | templates/_connections.html.ep | 25 | 
1 files changed, 13 insertions, 12 deletions
| diff --git a/templates/_connections.html.ep b/templates/_connections.html.ep index c9cd0fe..324dfab 100644 --- a/templates/_connections.html.ep +++ b/templates/_connections.html.ep @@ -21,6 +21,17 @@  				% else {  					%= $train->line  				% } +				<br/> +				% if ($train->departure_is_cancelled) { +					%= $train->sched_departure->strftime('%H:%M') +					⊖ +				% } +				% else { +					%= $train->departure->strftime('%H:%M') +					% if ($train->departure_delay) { +						%= sprintf('(%+d)', $train->departure_delay) +					% } +				% }  			</td>  			<td class="<%= $td_class %>">  				% if ($checkin_from) { @@ -49,18 +60,8 @@  				% }  			</td>  			<td> -				% if ($train->departure_is_cancelled) { -					%= $train->sched_departure->strftime('%H:%M') -					⊖ -				% } -				% else { -					% if ($train->platform) { -						Gleis <%= $train->platform %><br/> -					% } -					%= $train->departure->strftime('%H:%M') -					% if ($train->departure_delay) { -						%= sprintf('(%+d)', $train->departure_delay) -					% } +				% if ($train->platform) { +					Gleis <%= $train->platform %><br/>  				% }  			</td>  		</tr> | 
