diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2019-09-13 11:54:19 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2019-09-13 11:54:19 +0200 | 
| commit | 29d99fe140ad1ec9670b89cf33155c989024adfb (patch) | |
| tree | 00cdf7d35cb9fbd3d2e46da215baf2b83069e85c | |
| parent | c891da97fbb185e42121a0ca533282fc7c028573 (diff) | |
show arrival times in destination selection
| -rw-r--r-- | templates/_checked_in.html.ep | 25 | 
1 files changed, 11 insertions, 14 deletions
| diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index a1ac08e..7219b9e 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -198,14 +198,12 @@  				<p>Ziel wählen:</p>  				<table>  					<tbody> -						% my $is_after = 0;  						% for my $station (@{$journey->{route_after}}) { -							% if ($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> -							% } -							% else { -								<tr><td><a class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %></a></td></tr> -							% } +							<tr><td><a class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %> +								% if ($station->[1]{rt_arr}) { +									<span style="float: right;"><%= $station->[1]{rt_arr}->strftime('%H:%M') %></span> +								% } +							</a></td></tr>  						% }  					</tbody>  				</table> @@ -246,14 +244,13 @@  				<span class="card-title">Ziel ändern?</span>  				<table>  					<tbody> -						% my $is_after = 0;  						% for my $station (@{$journey->{route_after}}) { -							% if ($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> -							% } -							% else { -								<tr><td><a class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %></a></td></tr> -							% } +							% my $is_dest = ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}); +							<tr><td><a style="<%= $is_dest? 'font-weight: bold;' : '' %>" class="action-checkout" data-station="<%= $station->[0] %>"><%= $station->[0] %> +								% if ($station->[1]{rt_arr}) { +									<span style="float: right;"><%= $station->[1]{rt_arr}->strftime('%H:%M') %></span> +								% } +							</a></td></tr>  						% }  					</tbody>  				</table> | 
