summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-04-03 14:54:13 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-04-03 14:54:13 +0200
commitfb0d8fc6083ba6f34934d38ff58fa069c7f02a85 (patch)
tree68025762fc25595b331075aa22671565c4c716fa /templates
parent7152cb55a726f86fd7451286c8302ec4cb137da8 (diff)
also show local time for current stop
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 1437449..35c0aaf 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -45,6 +45,9 @@
% elsif ($departure->{prep_time}) {
Ein: <%= $departure->{prep_time} %>
% }
+% if ($departure->{tz_offset} and $departure->{local_sched_arr}) {
+ <br/>Lokal: <%= $departure->{local_sched_arr}->strftime('%H:%M') %>
+% }
</div>
</div>
<div>
@@ -107,6 +110,9 @@
% elsif ($departure->{sched_departure}) {
Ab: <%= $departure->{sched_departure} %>
% }
+% if ($departure->{tz_offset} and $departure->{local_sched_dep}) {
+ <br/>Lokal: <%= $departure->{local_sched_dep}->strftime('%H:%M') %>
+% }
</div>
</div>
</div> <!-- dataline -->
@@ -283,6 +289,9 @@
% if ($departure->{missing_realtime} or $departure->{no_realtime_yet}) {
<i class="material-icons" aria-label="Echtzeitdaten fehlen">gps_off</i>
% }
+% if ($departure->{tz_offset} and $departure->{local_dt_da}) {
+ (lokal <%= $departure->{local_dt_da}->strftime('%H:%M') %>)
+% }
<strong><%= stash('station_name') %></strong>
% if (my $u = $departure->{utilization}) {
% my ($text, $icon1, $icon2) = utilization_icon($u);