connections: move departure time to line
this way, departure time is left of arrival at destination, hopefully minimizing confusion
This commit is contained in:
parent
cd99bd6354
commit
1c7779e94e
1 changed files with 13 additions and 12 deletions
|
@ -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,19 +60,9 @@
|
||||||
% }
|
% }
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
% if ($train->departure_is_cancelled) {
|
|
||||||
%= $train->sched_departure->strftime('%H:%M')
|
|
||||||
⊖
|
|
||||||
% }
|
|
||||||
% else {
|
|
||||||
% if ($train->platform) {
|
% if ($train->platform) {
|
||||||
Gleis <%= $train->platform %><br/>
|
Gleis <%= $train->platform %><br/>
|
||||||
% }
|
% }
|
||||||
%= $train->departure->strftime('%H:%M')
|
|
||||||
% if ($train->departure_delay) {
|
|
||||||
%= sprintf('(%+d)', $train->departure_delay)
|
|
||||||
% }
|
|
||||||
% }
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
% }
|
% }
|
||||||
|
|
Loading…
Reference in a new issue