From 4329fde714614c28e12f45892c486c0989c85886 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 27 Mar 2024 13:43:03 +0100 Subject: Remove zugbildungsplan.json support I doubt we're gonna see new open data releases any time soon --- templates/_train_details.html.ep | 76 ---------------------------------------- templates/app.html.ep | 3 -- 2 files changed, 79 deletions(-) (limited to 'templates') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 932c355..f1ddfe0 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -2,9 +2,6 @@
% if ($departure->{train_no} or $departure->{train_line}) { <%= $departure->{train_type} %> -% if ($linetype eq 'fern' and $icetype and $icetype->[1]) { - -% } <%= $departure->{train_line} // $departure->{train_no} %> <%= $departure->{train_line} ? $departure->{train_no} : q{} %> @@ -152,12 +149,6 @@ <%= $departure->{wr_text} || 'Wagen' %> % } -% elsif ($icetype and $icetype->[2] and ($linetype eq 'fern' or $departure->{train_type} =~ m{NJ})) { - Plan: <%= $icetype->[0] %> -% } -% elsif ($icetype and $icetype->[1] and $linetype eq 'fern') { - Plan: <%= $icetype->[0] %> -% } % if ($departure->{train_type} and $departure->{train_no}) { Details % } @@ -350,72 +341,5 @@ % }
-% } -% if ($details->{attributes}) { -% if (@{$details->{attributes}} > 1) { -
- Attribute: - -
-% } -% else { -
-%= include '_train_attr', attr => $details->{attributes}[0], with_station => 0 -
-% } -% } -% if ($details and not $departure->{arrival}) { -% if (my $s = $details->{route}{preStart}) { - Zug wird voraussichtlich aus <%= $s %> eingesetzt.

-% } -% if (@{$departure->{cycle_from} // []}) { - Bildung möglicherweise aus - -% } -% } -% if ($details and not $departure->{departure}) { -% if (my $e = $details->{route}{postEnd}) { - Zug wird voraussichtlich in <%= $e %> abgestellt.

-% } -% if (@{$departure->{cycle_to} // []}) { - Weiterfahrt möglicherweise als - -% } % } diff --git a/templates/app.html.ep b/templates/app.html.ep index 29441a1..50f8a5a 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -67,9 +67,6 @@ %= $departure->{train_line} % } % elsif ($departure->{train_no}) { -% if (param('detailed') and $departure->{linetype} eq 'fern' and exists $ice_type->{$departure->{train_no}} and $ice_type->{$departure->{train_no}}[1]) { - -% } <%= $departure->{train_no} %> % } % else { -- cgit v1.2.3