summaryrefslogtreecommitdiff
path: root/templates/_public_status_card.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-10 17:58:13 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-10 17:58:13 +0200
commitf6800c86683df31c3a2080ba2b0657a97315a980 (patch)
tree2a4035627195f608b1a8edbf92eb09512fe27266 /templates/_public_status_card.html.ep
parent374da8718236a3a1ad624ffbd63813b9cc8fd9fb (diff)
javascript-based refresh of journey progress and countdown
Diffstat (limited to 'templates/_public_status_card.html.ep')
-rw-r--r--templates/_public_status_card.html.ep4
1 files changed, 3 insertions, 1 deletions
diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep
index 4b3b787..086c71b 100644
--- a/templates/_public_status_card.html.ep
+++ b/templates/_public_status_card.html.ep
@@ -4,7 +4,9 @@
<i class="material-icons small right sync-failed-marker grey-text" style="display: none;">sync_problem</i>
<span class="card-title"><%= $name %> ist unterwegs</span>
<p>
- <div class="center-align countdown">
+ <div class="center-align countdown"
+ data-duration="<%= $journey->{journey_duration} // 0 %>"
+ data-arrival="<%= $journey->{real_arrival}->epoch %>">
<b><%= $journey->{train_type} %> <%= $journey->{train_no} %></b><br/>
% if ($journey->{departure_countdown} > 120) {
Abfahrt in <%= sprintf('%.f', $journey->{departure_countdown} / 60) %> Minuten