From 374da8718236a3a1ad624ffbd63813b9cc8fd9fb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 9 May 2019 18:14:16 +0200 Subject: hide status countdown when offline --- templates/_checked_in.html.ep | 2 +- templates/_public_status_card.html.ep | 2 +- templates/layouts/default.html.ep | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'templates') diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index ffac3d6..43fda02 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -3,7 +3,7 @@ Eingecheckt in <%= $journey->{train_type} %> <%= $journey->{train_no} %>

-

+
% if ($journey->{departure_countdown} > 120) { Abfahrt in <%= sprintf('%.f', $journey->{departure_countdown} / 60) %> Minuten % } diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep index 494ad43..4b3b787 100644 --- a/templates/_public_status_card.html.ep +++ b/templates/_public_status_card.html.ep @@ -4,7 +4,7 @@ <%= $name %> ist unterwegs

-

+
<%= $journey->{train_type} %> <%= $journey->{train_no} %>
% if ($journey->{departure_countdown} > 120) { Abfahrt in <%= sprintf('%.f', $journey->{departure_countdown} / 60) %> Minuten diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep index fb77eec..98289f7 100644 --- a/templates/layouts/default.html.ep +++ b/templates/layouts/default.html.ep @@ -9,7 +9,7 @@ - % my $av = 'v15'; # asset version + % my $av = 'v16'; # asset version %= stylesheet "/static/${av}/css/materialize.min.css" -- cgit v1.2.3