history: show departure and arrival times
This commit is contained in:
parent
d7fc6ceb3a
commit
046ab99013
1 changed files with 10 additions and 5 deletions
|
@ -6,7 +6,8 @@
|
||||||
<th>Datum</th>
|
<th>Datum</th>
|
||||||
<th>Zug</th>
|
<th>Zug</th>
|
||||||
<th>Strecke</th>
|
<th>Strecke</th>
|
||||||
<th>Dauer</th>
|
<th>Abfahrt</th>
|
||||||
|
<th>Ankunft</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -16,12 +17,16 @@
|
||||||
<td><%= $travel->{sched_departure}->strftime('%d.%m.%Y') %></td>
|
<td><%= $travel->{sched_departure}->strftime('%d.%m.%Y') %></td>
|
||||||
<td><%= $travel->{type} %> <%= $travel->{line} // $travel->{no} %></td>
|
<td><%= $travel->{type} %> <%= $travel->{line} // $travel->{no} %></td>
|
||||||
<td><%= $travel->{from_name} %> → <%= $travel->{to_name} %></td>
|
<td><%= $travel->{from_name} %> → <%= $travel->{to_name} %></td>
|
||||||
% if ($travel->{rt_arrival} and $travel->{rt_departure}) {
|
<td><%= $travel->{rt_departure}->strftime('%H:%M') %>
|
||||||
<td><%= ($travel->{rt_arrival}->epoch - $travel->{rt_departure}->epoch) / 60 %> min</td>
|
% if ($travel->{sched_departure} != $travel->{rt_departure}) {
|
||||||
|
(+<%= ($travel->{rt_departure}->epoch - $travel->{sched_departure}->epoch) / 60 %>)
|
||||||
% }
|
% }
|
||||||
% else {
|
</td>
|
||||||
<td>?</td>
|
<td><%= $travel->{rt_arrival}->strftime('%H:%M') %>
|
||||||
|
% if ($travel->{sched_arrival} != $travel->{rt_arrival}) {
|
||||||
|
(+<%= ($travel->{rt_arrival}->epoch - $travel->{sched_arrival}->epoch) / 60 %>)
|
||||||
% }
|
% }
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
% }
|
% }
|
||||||
% }
|
% }
|
||||||
|
|
Loading…
Reference in a new issue