{% for task in doc.tasks %}
{{ task.subject }}
modified {{ frappe.utils.pretty_date(task.modified) }}
{% if task.todo %} {% if task.todo.user_image %} {% else %} {% endif %} {% endif %}
{{ task.comment_count }}
{% endfor %}