show arrival times in destination selection
This commit is contained in:
parent
c891da97fb
commit
29d99fe140
1 changed files with 11 additions and 14 deletions
|
@ -198,14 +198,12 @@
|
||||||
<p>Ziel wählen:</p>
|
<p>Ziel wählen:</p>
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
% my $is_after = 0;
|
|
||||||
% for my $station (@{$journey->{route_after}}) {
|
% for my $station (@{$journey->{route_after}}) {
|
||||||
% if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) {
|
<tr><td><a class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %>
|
||||||
<tr><td><b><a class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %></a></b></td></tr>
|
% if ($station->[1]{rt_arr}) {
|
||||||
% }
|
<span style="float: right;"><%= $station->[1]{rt_arr}->strftime('%H:%M') %></span>
|
||||||
% else {
|
|
||||||
<tr><td><a class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %></a></td></tr>
|
|
||||||
% }
|
% }
|
||||||
|
</a></td></tr>
|
||||||
% }
|
% }
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -246,14 +244,13 @@
|
||||||
<span class="card-title">Ziel ändern?</span>
|
<span class="card-title">Ziel ändern?</span>
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
% my $is_after = 0;
|
|
||||||
% for my $station (@{$journey->{route_after}}) {
|
% for my $station (@{$journey->{route_after}}) {
|
||||||
% if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) {
|
% my $is_dest = ($journey->{arr_name} and $station->[0] eq $journey->{arr_name});
|
||||||
<tr><td><b><a class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %></a></b></td></tr>
|
<tr><td><a style="<%= $is_dest? 'font-weight: bold;' : '' %>" class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %>
|
||||||
% }
|
% if ($station->[1]{rt_arr}) {
|
||||||
% else {
|
<span style="float: right;"><%= $station->[1]{rt_arr}->strftime('%H:%M') %></span>
|
||||||
<tr><td><a class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %></a></td></tr>
|
|
||||||
% }
|
% }
|
||||||
|
</a></td></tr>
|
||||||
% }
|
% }
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in a new issue