summaryrefslogtreecommitdiff
path: root/templates/_checked_in.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-10-05 06:59:06 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-10-05 06:59:06 +0200
commit1401fb64bf2a77129afed307d99c384fa6e26a33 (patch)
treea51a4344a86814ed09cff23092736151004dc53d /templates/_checked_in.html.ep
parent745b3708d3f5a43e09a70616c164de45adf49daa (diff)
also render entry-only stops in backend
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r--templates/_checked_in.html.ep8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index 2300ddd..a629ee3 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -134,10 +134,12 @@
% }
% last;
% }
- % if (($station->[2]{dep_countdown} // 0) > 0 and $station->[2]{arr} and $station->[2]{dep}) {
+ % if (($station->[2]{dep_countdown} // 0) > 0 and $station->[2]{dep}) {
<%= $station->[0] %><br/>
- <%= $station->[2]{arr}->strftime('%H:%M') %> →
- <%= $station->[2]{dep}->strftime('%H:%M') %>
+ % if ($station->[2]{arr}) {
+ <%= $station->[2]{arr}->strftime('%H:%M') %> →
+ % }
+ %= $station->[2]{dep}->strftime('%H:%M')
% if ($station->[2]{dep_delay}) {
%= sprintf('(%+d)', $station->[2]{dep_dely} / 60);
% }