<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Status update report {{ date }}</title>
</head>
<body>
    <h2>Status update report {{ date }}</h2>

    <h3>Students who didn't sent status updates</h3>
    {% for year, value in status_update.items %}
        <h4>{{ year }}</h4>
        <ol>
            {% for name, status in value.items %}
                {% ifequal status "N" %}
                    <li>{{ name }}</li>
                {% endifequal %}
            {%  endfor %}
        </ol>
    {% endfor %}

    <h3>Students who sent status updates</h3>

    {% for year, value in status_update.items %}
        <h4>{{ year }}</h4>
        <ol>
            {% for name, status in value.items %}
                {% ifequal status "Y" %}
                    <li>{{ name }}</li>
                {% endifequal %}
            {%  endfor %}
        </ol>
    {% endfor %}

    {% if url %}
        <p>More info: <a href="{{ url }}">{{ url }}</a></p>
    {% endif %}

</body>
</html>