{% extends "base.html" %} {% block title %}Notifications{% endblock %} {% block content %}

Here you can see the latest alerts!

Light

{% if todays %} {% if 'light' not in todays.keys() %} There are no alerts from today.

{% else %} {% for item in todays['light'] %} {{item}}
{% endfor %} {% endif %}
{% else %} There are no alerts from today.

{% endif %}

{% if l %} {% if 'light' not in l.keys() %} There are no previous alerts. {% else %} {% for item in l['light'] %} {{item}}
{% endfor %} {% endif %} {% else %} There are no previous alerts. {% endif %}

Temperature

{% if todays %} {% if 'temp' not in todays.keys() %} There are no alerts from today.

{% else %} {% for item in todays['temp'] %} {{item}}
{% endfor %} {% endif %}
{% else %} There are no alerts from today.

{% endif %}

{% if l %} {% if 'temp' not in l.keys() %} There are no previous alerts. {% else %} {% for item in l['temp'] %} {{item}}
{% endfor %} {% endif %} {% else %} There are no previous alerts. {% endif %}

Deflection

{% if todays %} {% if 'def' not in todays.keys() %} There are no alerts from today.

{% else %} {% for item in todays['def'] %} {{item}}
{% endfor %} {% endif %}
{% else %} There are no alerts from today.

{% endif %}

{% if l %} {% if 'def' not in l.keys() %} There are no previous alerts. {% else %} {% for item in l['def'] %} {{item}}
{% endfor %} {% endif %} {% else %} There are no previous alerts. {% endif %}

{% endblock %}