{% extends 'carnet_rouge/base_cr.html' %}

{% block title %}Messages non lus{% endblock %}
{% block cr_content %}
    <div class="row">
        <div class="col">
            {% if object_list %}
                {% for obj in object_list %}
                    <h2>{{ obj.sTitle }}</h2>
                    {% include 'carnet_rouge/cr_message.html' with obj=obj %}
                    {% if not forloop.last %}
                        <hr>{% endif %}
                {% endfor %}
            {% else %}
                <p>There is no post.</p>
            {% endif %}
        </div>
    </div>
{% endblock %}