connections: move departure time to line

this way, departure time is left of arrival at destination, hopefully
minimizing confusion
This commit is contained in:
Daniel Friesel 2022-09-24 18:51:23 +02:00
parent cd99bd6354
commit 1c7779e94e
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -21,6 +21,17 @@
% else { % else {
%= $train->line %= $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>
<td class="<%= $td_class %>"> <td class="<%= $td_class %>">
% if ($checkin_from) { % if ($checkin_from) {
@ -49,18 +60,8 @@
% } % }
</td> </td>
<td> <td>
% if ($train->departure_is_cancelled) { % if ($train->platform) {
%= $train->sched_departure->strftime('%H:%M') Gleis <%= $train->platform %><br/>
% }
% else {
% if ($train->platform) {
Gleis <%= $train->platform %><br/>
% }
%= $train->departure->strftime('%H:%M')
% if ($train->departure_delay) {
%= sprintf('(%+d)', $train->departure_delay)
% }
% } % }
</td> </td>
</tr> </tr>