From 8da6180bf186523af9aadd51ff5512a278f3e300 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 9 Jan 2023 19:42:41 +0100 Subject: readd ze zycles --- templates/_train_details.html.ep | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'templates') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 21f11a3..3e07cf8 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -320,10 +320,6 @@ % } -% if ($departure->{has_cycle}) { -
Umlaufplan - (ggf. fehlerhaft)
-% } % if ($details->{attributes}) { % if (@{$details->{attributes}} > 1) {
@@ -352,7 +348,12 @@ % my ($train_no, $train) = @{$t}; % my $tt = $train->{type} // $train->{rawType} // 'Zug'; % $tt =~ s{ .*|[0-9]}{}; +% if ($tt ne 'Zug') { +
  • query({detailed => param('detailed'), past => param('past'), rt => param('rt')}) %>"><%= $tt %> <%= $train_no %> +% } +% else {
  • <%= $tt %> <%= $train_no %> +% } % if ($train->{route}{start} and $train->{route}{end}) { <%= $train->{route}{start} %> → <%= $train->{route}{end} %> % } @@ -361,7 +362,7 @@ % } % } -% elsif ($details and not $departure->{departure}) { +% if ($details and not $departure->{departure}) { % if (my $e = $details->{route}{postEnd}) { Zug wird voraussichtlich in <%= $e %> abgestellt.

    % } @@ -372,7 +373,12 @@ % my ($train_no, $train) = @{$t}; % my $tt = $train->{type} // $train->{rawType} // 'Zug'; % $tt =~ s{ .*|[0-9]}{}; +% if ($tt ne 'Zug') { +
  • query({detailed => param('detailed'), past => param('past'), rt => param('rt')}) %>"><%= $tt %> <%= $train_no %> +% } +% else {
  • <%= $tt %> <%= $train_no %> +% } % if ($train->{route}{start} and $train->{route}{end}) { <%= $train->{route}{start} %> → <%= $train->{route}{end} %> % } -- cgit v1.2.3