{% for task in tasks %}
{% if task.has_error %}
{{ task.verbose_name }}
Error: "{{ task.error_message }}"
Task started at {{ task.run_at|date:'Y-m-d H:i:s' }}
{% else %}
{{ task.verbose_name }}
Task started at {{ task.run_at|date:'Y-m-d H:i:s' }}
{% endif %}
{% empty %}
There have been no completed tasks.
{% endfor %}
{% include 'pagination.html' with pagination=sources.paginator filter=source.pk %}
{% endblock %}