{# HTML fragment for the dashboard's per-project aggregate (HTMX-loaded). #} {% if goals %}
{% for goal in goals %}
{{ goal.title }} {{ goal.task_completed }}/{{ goal.task_total }}
{% endfor %}
{% else %}
No goals defined yet.
{% endif %}
{% set total = (task_status_counts.values() | sum) if task_status_counts else 0 %} {% for status, count in (task_status_counts or {}).items() %} {{ count }} {{ status }} {% endfor %} {% if not task_status_counts %}no tasks yet{% endif %}
{% if stalled_tasks %}
{{ stalled_tasks|length }} stalled task(s)
{% endif %}