mirror of
https://github.com/derf/travelynx
synced 2024-09-20 14:41:56 +00:00
station board: make 'now' marker easier to distinguish
This commit is contained in:
parent
f4d71b4d9f
commit
155ac555f1
3 changed files with 9 additions and 4 deletions
|
@ -71,3 +71,8 @@ ul.suggestions {
|
||||||
padding-bottom: 0.5rem;
|
padding-bottom: 0.5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table.departures tr.now td {
|
||||||
|
padding-top: 2em;
|
||||||
|
padding-bottom: 2em;
|
||||||
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<table class="striped">
|
<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;
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
% }
|
% }
|
||||||
% if (not $orientation_bar_shown and $result->datetime->epoch < $now_epoch) {
|
% if (not $orientation_bar_shown and $result->datetime->epoch < $now_epoch) {
|
||||||
% $orientation_bar_shown = 1;
|
% $orientation_bar_shown = 1;
|
||||||
<tr>
|
<tr class="now">
|
||||||
<td>
|
<td>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<table class="striped">
|
<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;
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
% }
|
% }
|
||||||
% if (not $orientation_bar_shown and $result->departure->epoch < $now_epoch) {
|
% if (not $orientation_bar_shown and $result->departure->epoch < $now_epoch) {
|
||||||
% $orientation_bar_shown = 1;
|
% $orientation_bar_shown = 1;
|
||||||
<tr>
|
<tr class="now">
|
||||||
<td>
|
<td>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
Loading…
Reference in a new issue