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 {
%= $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>