summaryrefslogtreecommitdiff
path: root/templates/history.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-10-21 16:05:18 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-10-21 16:05:18 +0200
commitf791a1ee6c52b94f6a8894362c683a33c9437bb9 (patch)
tree7361f545906fc152bd10ebb8c233f2084c95fb62 /templates/history.html.ep
parent8e817e5d60303e5307c3151f2b5a1a0eb62c0acd (diff)
handle force checkout in history view
Diffstat (limited to 'templates/history.html.ep')
-rw-r--r--templates/history.html.ep11
1 files changed, 8 insertions, 3 deletions
diff --git a/templates/history.html.ep b/templates/history.html.ep
index 24434d0..c7e6b6f 100644
--- a/templates/history.html.ep
+++ b/templates/history.html.ep
@@ -22,9 +22,14 @@
(+<%= ($travel->{rt_departure}->epoch - $travel->{sched_departure}->epoch) / 60 %>)
% }
</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>
+ % if ($travel->{rt_arrival}->epoch == 0 and $travel->{sched_arrival}->epoch == 0) {
+ <i class="material-icons">timer_off</i>
+ % } else {
+ %= $travel->{rt_arrival}->strftime('%H:%M');
+ % if ($travel->{sched_arrival} != $travel->{rt_arrival}) {
+ (+<%= ($travel->{rt_arrival}->epoch - $travel->{sched_arrival}->epoch) / 60 %>)
+ % }
% }
</td>
</tr>