{# Goal card with read-time progress. Expects a goal dict with progress fields. #}
{{ goal.title }} {{ goal.task_completed }}/{{ goal.task_total }} {% if goal.metric_name %}ยท {{ goal.metric_name }}{% endif %}
{% if goal.description %}

{{ goal.description }}

{% endif %} {% set pct = goal.percentage if goal.percentage is defined else 0 %} {% with percentage=pct, label=false %} {% include "partials/progress_bar.html" %} {% endwith %}
{{ pct|round(0) }}%