Unverified Commit 357efdae authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

departure board: show 'now' marker in bold and with request timestamp

parent 1ba41db3
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
<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">
+5 −4
Original line number Diff line number Diff line
<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">