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,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>
|
||||||
|
|
Loading…
Reference in a new issue