summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-10-21 09:30:26 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-10-21 09:30:26 +0200
commit357efdae358e8ed28c223c871802e419fcd2aa00 (patch)
tree37b130a12aeb0f7c65645261c486bfd9bd58b518
parent1ba41db376e6875fa54278a41e253c34dc0f5c65 (diff)
departure board: show 'now' marker in bold and with request timestamp
-rw-r--r--templates/_departures_hafas.html.ep9
-rw-r--r--templates/_departures_iris.html.ep9
2 files changed, 10 insertions, 8 deletions
diff --git a/templates/_departures_hafas.html.ep b/templates/_departures_hafas.html.ep
index 6e1641f..169b319 100644
--- a/templates/_departures_hafas.html.ep
+++ b/templates/_departures_hafas.html.ep
@@ -1,7 +1,7 @@
<table class="striped departures">
<tbody>
% my $orientation_bar_shown = param('train');
-% my $now_epoch = now()->epoch;
+% my $now_epoch = now->epoch;
% for my $result (@{$results}) {
% my $td_class = '';
% my $link_class = 'action-checkin';
@@ -15,10 +15,11 @@
<td>
</td>
<td>
- — Anfragezeitpunkt —
- </td>
- <td>
+ <strong>— Anfragezeitpunkt —</strong>
</td>
+ <td><strong>
+ %= now->strftime('%H:%M')
+ </strong></td>
</tr>
% }
<tr class="<%= $link_class %>" data-station="<%= $result->station_eva %>" data-train="<%= $result->id %>" data-ts="<%= ($result->sched_datetime // $result->datetime)->epoch %>" data-tr="3">
diff --git a/templates/_departures_iris.html.ep b/templates/_departures_iris.html.ep
index cecbc8a..c8dd834 100644
--- a/templates/_departures_iris.html.ep
+++ b/templates/_departures_iris.html.ep
@@ -1,7 +1,7 @@
<table class="striped departures">
<tbody>
% my $orientation_bar_shown = param('train');
-% my $now_epoch = now()->epoch;
+% my $now_epoch = now->epoch;
% for my $result (@{$results}) {
% my $td_class = '';
% my $link_class = 'action-checkin';
@@ -15,10 +15,11 @@
<td>
</td>
<td>
- — Anfragezeitpunkt —
- </td>
- <td>
+ <strong>— Anfragezeitpunkt —</strong>
</td>
+ <td><strong>
+ %= now->strftime('%H:%M')
+ </strong></td>
</tr>
% }
<tr class="<%= $link_class %>" data-station="<%= $result->station_uic %>" data-train="<%= $result->train_id %>" data-ts="<%= ($result->sched_departure // $result->departure)->epoch %>" data-tr="3">