From 343e9ef20cf743005fe3224af9652c3fa6874b90 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 27 Mar 2019 21:26:37 +0100 Subject: history: more smartphone-friendly --- templates/history.html.ep | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) (limited to 'templates/history.html.ep') 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 @@ Datum Zug Strecke - Abfahrt - Ankunft + Zeit @@ -69,17 +68,6 @@ <%= $travel->{type} %> <%= $travel->{line} // '' %> <%= $travel->{no} %> <%= $travel->{from_name} %> → <%= $travel->{to_name} %> - % 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) %>) - % } - % } - - % if (param('cancelled') and $travel->{sched_arrival}->epoch != 0) { %= $travel->{sched_arrival}->strftime('%H:%M') % } @@ -93,6 +81,16 @@ % } % } % } +
+ % 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) %>) + % } + % } % } -- cgit v1.2.3