From 11d77d4bb95e0f79d2afbcf0ab9bb7b66cc12003 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 17 Mar 2019 18:34:33 +0100 Subject: add journey detail view --- templates/history.html.ep | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'templates/history.html.ep') diff --git a/templates/history.html.ep b/templates/history.html.ep index cf81765..d79b515 100644 --- a/templates/history.html.ep +++ b/templates/history.html.ep @@ -19,12 +19,13 @@ - % for my $travel (get_user_travels(0)) { + % for my $travel (get_user_travels()) { % if ($travel->{completed}) { + % my $detail_link = '/journey/' . current_user()->{id} . '-' . $travel->{checkin}->epoch . '-' . $travel->{checkout}->epoch; <%= $travel->{sched_departure}->strftime('%d.%m.%Y') %> - <%= $travel->{type} %> <%= $travel->{line} // '' %> <%= $travel->{no} %> - <%= $travel->{from_name} %> → <%= $travel->{to_name} %> + <%= $travel->{type} %> <%= $travel->{line} // '' %> <%= $travel->{no} %> + <%= $travel->{from_name} %> → <%= $travel->{to_name} %> <%= $travel->{rt_departure}->strftime('%H:%M') %> % if ($travel->{sched_departure} != $travel->{rt_departure}) { (+<%= ($travel->{rt_departure}->epoch - $travel->{sched_departure}->epoch) / 60 %>) -- cgit v1.2.3