also render entry-only stops in backend

This commit is contained in:
Birte Kristina Friesel 2023-10-05 06:59:06 +02:00
parent 745b3708d3
commit 1401fb64bf
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA
2 changed files with 10 additions and 6 deletions

View file

@ -134,10 +134,12 @@
% } % }
% last; % 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->[0] %><br/>
<%= $station->[2]{arr}->strftime('%H:%M') %> → % if ($station->[2]{arr}) {
<%= $station->[2]{dep}->strftime('%H:%M') %> <%= $station->[2]{arr}->strftime('%H:%M') %> →
% }
%= $station->[2]{dep}->strftime('%H:%M')
% if ($station->[2]{dep_delay}) { % if ($station->[2]{dep_delay}) {
%= sprintf('(%+d)', $station->[2]{dep_dely} / 60); %= sprintf('(%+d)', $station->[2]{dep_dely} / 60);
% } % }

View file

@ -98,10 +98,12 @@
% } % }
% last; % 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->[0] %><br/>
<%= $station->[2]{arr}->strftime('%H:%M') %> → % if ($station->[2]{arr}) {
<%= $station->[2]{dep}->strftime('%H:%M') %> <%= $station->[2]{arr}->strftime('%H:%M') %> →
% }
%= $station->[2]{dep}->strftime('%H:%M')
% if ($station->[2]{dep_delay}) { % if ($station->[2]{dep_delay}) {
%= sprintf('(%+d)', $station->[2]{dep_delay} / 60); %= sprintf('(%+d)', $station->[2]{dep_delay} / 60);
% } % }