departure board: show 'now' marker in bold and with request timestamp
This commit is contained in:
parent
1ba41db376
commit
357efdae35
2 changed files with 10 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
||||||
<table class="striped departures">
|
<table class="striped departures">
|
||||||
<tbody>
|
<tbody>
|
||||||
% my $orientation_bar_shown = param('train');
|
% my $orientation_bar_shown = param('train');
|
||||||
% my $now_epoch = now()->epoch;
|
% my $now_epoch = now->epoch;
|
||||||
% for my $result (@{$results}) {
|
% for my $result (@{$results}) {
|
||||||
% my $td_class = '';
|
% my $td_class = '';
|
||||||
% my $link_class = 'action-checkin';
|
% my $link_class = 'action-checkin';
|
||||||
|
@ -15,10 +15,11 @@
|
||||||
<td>
|
<td>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
— Anfragezeitpunkt —
|
<strong>— Anfragezeitpunkt —</strong>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
</td>
|
</td>
|
||||||
|
<td><strong>
|
||||||
|
%= now->strftime('%H:%M')
|
||||||
|
</strong></td>
|
||||||
</tr>
|
</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">
|
<tr class="<%= $link_class %>" data-station="<%= $result->station_eva %>" data-train="<%= $result->id %>" data-ts="<%= ($result->sched_datetime // $result->datetime)->epoch %>" data-tr="3">
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<table class="striped departures">
|
<table class="striped departures">
|
||||||
<tbody>
|
<tbody>
|
||||||
% my $orientation_bar_shown = param('train');
|
% my $orientation_bar_shown = param('train');
|
||||||
% my $now_epoch = now()->epoch;
|
% my $now_epoch = now->epoch;
|
||||||
% for my $result (@{$results}) {
|
% for my $result (@{$results}) {
|
||||||
% my $td_class = '';
|
% my $td_class = '';
|
||||||
% my $link_class = 'action-checkin';
|
% my $link_class = 'action-checkin';
|
||||||
|
@ -15,10 +15,11 @@
|
||||||
<td>
|
<td>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
— Anfragezeitpunkt —
|
<strong>— Anfragezeitpunkt —</strong>
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
</td>
|
</td>
|
||||||
|
<td><strong>
|
||||||
|
%= now->strftime('%H:%M')
|
||||||
|
</strong></td>
|
||||||
</tr>
|
</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">
|
<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">
|
||||||
|
|
Loading…
Reference in a new issue