{% extends "todo/base.html" %} {% load bootstrap4 %} {% block content %}

{{ task.title }}

{% if task.note %}
{{ task.note|safe|urlize|linebreaks }}
{% endif %}
Ajouter un commentaire
{% csrf_token %}
{% if task.comments.exists %}
Commentaires
{% for comment in task.comments.all %}
{{ comment.author }}
{{ comment.date|date:"F d Y P" }}
{{ comment.body|safe|urlize|linebreaks }}
{% endfor %} {% else %}
Pas de commentaire
{% endif %}
{% endblock %}