{% extends "base.html" %} {% block title %}Notifications{% endblock %} {% block content %}
{% 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 %}
{% 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 %}
{% 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 %}