From 2759d7258c37c7498905cfe19f6b4c4f6d16bd21 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Wed, 24 Jul 2024 20:50:12 +0200 Subject: support non-DB HAFAS backends (WiP) --- templates/_checked_in.html.ep | 2 +- templates/_checked_out.html.ep | 2 +- templates/_connections_hafas.html.ep | 3 ++- templates/_departures_hafas.html.ep | 1 + templates/departures.html.ep | 39 ++++++++++++++++---------------- templates/exception.html.ep | 11 +++++++-- templates/landingpage.html.ep | 43 ++++++++++++++++++++++-------------- templates/layouts/default.html.ep | 2 +- templates/select_backend.html.ep | 34 ++++++++++++++++++++++++++++ templates/traewelling.html.ep | 27 +++++++++------------- 10 files changed, 106 insertions(+), 58 deletions(-) create mode 100644 templates/select_backend.html.ep (limited to 'templates') diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 19a94bb..9450ffd 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -345,7 +345,7 @@ % } Zuglauf % if ($journey->{extra_data}{trip_id}) { - Karte + Karte % } diff --git a/templates/_checked_out.html.ep b/templates/_checked_out.html.ep index 5a944dc..21db335 100644 --- a/templates/_checked_out.html.ep +++ b/templates/_checked_out.html.ep @@ -3,7 +3,7 @@ Ausgecheckt

Aus %= include '_format_train', journey => $journey - bis <%= $journey->{arr_name} %>

+ bis <%= $journey->{arr_name} %>

% if (@{stash('connections_iris') // [] } or @{stash('connections_hafas') // []}) { Verbindungen

Fahrt auswählen zum Einchecken mit Zielwahl.

diff --git a/templates/_connections_hafas.html.ep b/templates/_connections_hafas.html.ep index dcf7ec9..43198e2 100644 --- a/templates/_connections_hafas.html.ep +++ b/templates/_connections_hafas.html.ep @@ -1,6 +1,6 @@