diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/departure_list.html | 9 | ||||
-rw-r--r-- | templates/landing_page.html | 9 |
2 files changed, 18 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 %} 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> |