Catch errors from external service and display in alert box
Closes: #129
This commit is contained in:
parent
f19e4e4dd4
commit
7a9fbcec7b
2 changed files with 21 additions and 5 deletions
|
|
@ -127,6 +127,14 @@
|
|||
Sunset: {{ sunset.strftime("%H:%M:%S") }}</li>
|
||||
</ul>
|
||||
|
||||
{% if errors %}
|
||||
{% for error in errors %}
|
||||
<div class="alert alert-danger" role="alert">
|
||||
Error: {{ error }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<h3>Stock markets</h3>
|
||||
{% for market in stock_markets %}
|
||||
<p>{{ market }}</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue