From 4609b7312d67063b2cb0d5803260d7dc25475bc2 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 14 Dec 2020 19:18:19 +0100 Subject: show expected wagon order whan real-time data is not available work in progress. --- templates/_train_details.html.ep | 3 +++ templates/not_found.html.ep | 5 +++++ templates/zugbildung_db.html.ep | 26 ++++++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 templates/zugbildung_db.html.ep (limited to 'templates') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index e1ce093..7c3ee4a 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -112,6 +112,9 @@ Wagenreihung % } +% elsif ($icetype and $icetype->[2] and $linetype eq 'fern') { + Plan: <%= $icetype->[0] %> +% } % elsif ($icetype and $icetype->[1] and $linetype eq 'fern') { Plan: <%= $icetype->[0] %> % } diff --git a/templates/not_found.html.ep b/templates/not_found.html.ep index df583ae..c03d32d 100644 --- a/templates/not_found.html.ep +++ b/templates/not_found.html.ep @@ -1,7 +1,12 @@
404 Page Not Found: +% if (my $e = stash('message')) { +%= $e +% } +% else { Die aufgerufene URL existiert nicht und ist keine gültige Abbildung auf einen Bahnhofsnamen. +% }
diff --git a/templates/zugbildung_db.html.ep b/templates/zugbildung_db.html.ep new file mode 100644 index 0000000..9edf790 --- /dev/null +++ b/templates/zugbildung_db.html.ep @@ -0,0 +1,26 @@ +% if ($wr_error) { +
+
+ Fehler bei der Abfrage der Wagenreihung: + <%= $wr_error %> +
+
+% } +
+
+%= $zb->{route} +
+ Vorgesehener Zugtyp: <%= $zb->{type} %> +
+
+
+% for my $wagon (@{$wagons // []}) { +%= include '_wagon', direction => undef, wagon => $wagon; +% } +
+
+ Die Angaben wurden automatisch aus den Solldaten gemäß Zugbildungsplan extrahiert. + Fehler sind möglich. © 2020 DB Fernverkehr AG und Daniel Friesel, CC-BY 4.0. +
+ +
-- cgit v1.2.3