Skip to content
Snippets Groups Projects
Commit 046ab990 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

history: show departure and arrival times

parent d7fc6ceb
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,8 @@
<th>Datum</th>
<th>Zug</th>
<th>Strecke</th>
<th>Dauer</th>
<th>Abfahrt</th>
<th>Ankunft</th>
</tr>
</thead>
<tbody>
......@@ -16,12 +17,16 @@
<td><%= $travel->{sched_departure}->strftime('%d.%m.%Y') %></td>
<td><%= $travel->{type} %> <%= $travel->{line} // $travel->{no} %></td>
<td><%= $travel->{from_name} %> → <%= $travel->{to_name} %></td>
% if ($travel->{rt_arrival} and $travel->{rt_departure}) {
<td><%= ($travel->{rt_arrival}->epoch - $travel->{rt_departure}->epoch) / 60 %> min</td>
<td><%= $travel->{rt_departure}->strftime('%H:%M') %>
% 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>
% }
% }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment