summaryrefslogtreecommitdiff
path: root/templates/departure_list.html
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-07-15 20:34:00 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-07-15 20:34:00 +0200
commit83f54386b7877ec66c70b79962d3cd73a17ac8a5 (patch)
treefec84d2a72685f355c27ef393523f39c7fbe23a5 /templates/departure_list.html
parente258e3e1eb2d2dafc92c016253fd29d48869af73 (diff)
add error handling for hafas and efa requests
Diffstat (limited to 'templates/departure_list.html')
-rw-r--r--templates/departure_list.html9
1 files changed, 9 insertions, 0 deletions
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 @@
<div class="container">
<div class="content">
+ {% if warning %}
+ <div class="content">
+ <div class="warning">
+ <strong>{{ warning["lead"] }}</strong>
+ {{ warning["body"] }}
+ <div class="errcode">{{ warning["code"] }}</div>
+ </div>
+ </div>
+ {% endif %}
{% if not departures %}
<div class="globalnote">Keine Abfahrten innerhalb der nächsten zwei Stunden</div>
{% endif %}