diff options
-rw-r--r-- | templates/history.html.ep | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/templates/history.html.ep b/templates/history.html.ep index 0bed9ab..6b0f894 100644 --- a/templates/history.html.ep +++ b/templates/history.html.ep @@ -56,8 +56,7 @@ <th>Datum</th> <th>Zug</th> <th>Strecke</th> - <th>Abfahrt</th> - <th>Ankunft</th> + <th>Zeit</th> </tr> </thead> <tbody> @@ -69,17 +68,6 @@ <td><a href="<%= $detail_link %>"><%= $travel->{type} %> <%= $travel->{line} // '' %> <%= $travel->{no} %></a></td> <td><a href="<%= $detail_link %>"><%= $travel->{from_name} %> → <%= $travel->{to_name} %></a></td> <td> - % if (param('cancelled')) { - %= $travel->{sched_departure}->strftime('%H:%M') - % } - % else { - <%= $travel->{rt_departure}->strftime('%H:%M') %> - % if ($travel->{sched_departure} != $travel->{rt_departure}) { - (<%= sprintf('%+d', ($travel->{rt_departure}->epoch - $travel->{sched_departure}->epoch) / 60) %>) - % } - % } - </td> - <td> % if (param('cancelled') and $travel->{sched_arrival}->epoch != 0) { %= $travel->{sched_arrival}->strftime('%H:%M') % } @@ -93,6 +81,16 @@ % } % } % } + <br/> + % if (param('cancelled')) { + %= $travel->{sched_departure}->strftime('%H:%M') + % } + % else { + <%= $travel->{rt_departure}->strftime('%H:%M') %> + % if ($travel->{sched_departure} != $travel->{rt_departure}) { + (<%= sprintf('%+d', ($travel->{rt_departure}->epoch - $travel->{sched_departure}->epoch) / 60) %>) + % } + % } </td> </tr> % } |