diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-08-06 20:21:57 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-08-06 20:21:57 +0200 |
commit | c9592e3f765911a04e03c4ef5da1cdc7a93f2551 (patch) | |
tree | 9a9a8d1d4bf909ee87ed5825bbe3541ea910eb07 /templates | |
parent | 0439aa8b0247bbbd5590526bb679f749940bb6df (diff) |
show boarding countdown in departure overview
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_checked_in.html.ep | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 4e056da..3070ed9 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -6,6 +6,15 @@ <div class="center-align countdown" data-duration="<%= $journey->{journey_duration} // 0 %>" data-arrival="<%= $journey->{real_arrival}->epoch %>"> + % if ($journey->{boarding_countdown} > 120) { + Einfahrt in <%= sprintf('%.f', $journey->{boarding_countdown} / 60) %> Minuten<br/> + % } + % elsif ($journey->{boarding_countdown} > 60) { + Einfahrt in einer Minute<br/> + % } + % elsif ($journey->{boarding_countdown} > 0) { + Zug fährt ein<br/> + % } % if ($journey->{departure_countdown} > 120) { Abfahrt in <%= sprintf('%.f', $journey->{departure_countdown} / 60) %> Minuten % } |