From 83f54386b7877ec66c70b79962d3cd73a17ac8a5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 15 Jul 2021 20:34:00 +0200 Subject: add error handling for hafas and efa requests --- templates/departure_list.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'templates/departure_list.html') diff --git a/templates/departure_list.html b/templates/departure_list.html index 3762a03..42ce550 100644 --- a/templates/departure_list.html +++ b/templates/departure_list.html @@ -10,6 +10,15 @@
+ {% if warning %} +
+
+ {{ warning["lead"] }} + {{ warning["body"] }} +
{{ warning["code"] }}
+
+
+ {% endif %} {% if not departures %}
Keine Abfahrten innerhalb der nächsten zwei Stunden
{% endif %} -- cgit v1.2.3