summaryrefslogtreecommitdiff
path: root/templates/landing_page.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/landing_page.html
parente258e3e1eb2d2dafc92c016253fd29d48869af73 (diff)
add error handling for hafas and efa requests
Diffstat (limited to 'templates/landing_page.html')
-rw-r--r--templates/landing_page.html9
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/landing_page.html b/templates/landing_page.html
index c5a04fd..b6a28cd 100644
--- a/templates/landing_page.html
+++ b/templates/landing_page.html
@@ -8,6 +8,15 @@
<body>
{% include 'navbar.html' %}
<div class="container">
+ {% if error %}
+ <div class="content">
+ <div class="error">
+ <strong>{{ error["lead"] }}</strong>
+ {{ error["body"] }}
+ <div class="errcode">{{ error["code"] }}</div>
+ </div>
+ </div>
+ {% endif %}
<div class="content">
<div class="geolocation">
<button id="geolocationsearch">Haltestellen in der Umgebung suchen</button>