diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-10-21 16:05:18 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-10-21 16:05:18 +0200 |
commit | f791a1ee6c52b94f6a8894362c683a33c9437bb9 (patch) | |
tree | 7361f545906fc152bd10ebb8c233f2084c95fb62 /templates/landingpage.html.ep | |
parent | 8e817e5d60303e5307c3151f2b5a1a0eb62c0acd (diff) |
handle force checkout in history view
Diffstat (limited to 'templates/landingpage.html.ep')
-rw-r--r-- | templates/landingpage.html.ep | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/landingpage.html.ep b/templates/landingpage.html.ep index c1d62d8..5d03262 100644 --- a/templates/landingpage.html.ep +++ b/templates/landingpage.html.ep @@ -52,11 +52,13 @@ <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}) { + % if ($travel->{rt_arrival}->epoch and $travel->{rt_departure}->epoch) { <td><%= ($travel->{rt_arrival}->epoch - $travel->{rt_departure}->epoch) / 60 %> min </td> % } else { - <td><%= sprintf('%.f', $self->get_travel_distance($travel->{from_name}, $travel->{to_name}, $travel->{route})) %>km</td> + <td><%= sprintf('%.f', $self->get_travel_distance($travel->{from_name}, $travel->{to_name}, $travel->{route})) %>km + <i class="material-icons">timer_off</i> + </td> % } </tr> % } |