From d8cbd9cd6cd19f164b865d54584f05c1490c77f7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 24 Sep 2022 15:01:02 +0200 Subject: connections: always use three-column view --- templates/_connections.html.ep | 75 ++---------------------------------------- 1 file changed, 2 insertions(+), 73 deletions(-) diff --git a/templates/_connections.html.ep b/templates/_connections.html.ep index ca2a6ba..d84ac76 100644 --- a/templates/_connections.html.ep +++ b/templates/_connections.html.ep @@ -1,4 +1,4 @@ -
+
% for my $res (@{$connections}) { % my ($train, $via) = @{$res}; % my $td_class = ''; @@ -28,7 +28,6 @@ % else { %= $via % } -
% if ($train->{message_id}{96} or $train->{message_id}{97}) { warning % } @@ -51,72 +50,9 @@ ⊖ % } % else { - %= $train->departure->strftime('%H:%M') - % if ($train->departure_delay) { - %= sprintf('(%+d)', $train->departure_delay) - % } - % if ($train->{interchange_icon}) { - <%= $train->{interchange_icon} %> - % } % if ($train->platform) { -
Gleis <%= $train->platform %> + Gleis <%= $train->platform %>
% } - % } - - - % } -
-
- % for my $res (@{$connections}) { - % my ($train, $via) = @{$res}; - % my $td_class = ''; - % my $link_class = 'action-checkin'; - % if ($train->departure_is_cancelled) { - % $td_class = 'cancelled'; - % $link_class = 'action-cancelled-from'; - % } - % if ($checkin_from) { - - % } - % else { - - % } - - - % } -- cgit v1.2.3
- % if ($checkin_from) { - <%= $train->line %> - % } - % else { - %= $train->line - % } - - % if ($checkin_from) { - <%= $via %> - % } - % else { - %= $via - % } - % if ($train->{message_id}{96} or $train->{message_id}{97}) { - warning - % } - % if ($train->{message_id}{82} or $train->{message_id}{85}) { - people - % } - % if (($train->{message_id}{73} or $train->{message_id}{74} or $train->{message_id}{75} or $train->{message_id}{76} or $train->{message_id}{80}) and not $train->{message_id}{84}) { - compare_arrows - % } - % if ($train->{message_id}{83} or $train->{message_id}{93} or $train->{message_id}{95}) { - info_outline - % } - % if ($train->{message_id}{70} or $train->{message_id}{71}) { - portable_wifi_off - % } - - % if ($train->departure_is_cancelled) { - %= $train->sched_departure->strftime('%H:%M') - % } - % else { %= $train->departure->strftime('%H:%M') % if ($train->departure_delay) { %= sprintf('(%+d)', $train->departure_delay) @@ -125,13 +61,6 @@ <%= $train->{interchange_icon} %> % } % } - - % if ($train->platform and not $train->departure_is_cancelled) { - Gleis <%= $train->platform %> - % } - % elsif ($train->departure_is_cancelled) { - fällt aus - % }