{% load goal_filters %} {% load i18n %}
{% trans "Task" %} | {% comment %}{% endcomment %} | {% trans "Progress" %} | |||||||
---|---|---|---|---|---|---|---|---|---|
{% if goal|complete_for:user %} ★ {% else %} ★ {% endif %} | {% if goal_number %}{{ goal_number }}.{% endif %}{{ forloop.counter }} | {# Goal begin/redo links #}{% if goal|goal_instances_for:user|length > 0 %} {% if goal|complete_for:user %} {% trans "More?" %} {% else %} {% trans "Continue" %} {% endif %} {% else %} {% trans "Begin" %} {% endif %} | {{ goal.short_name }} | {% comment %}{% for n, g in goal.summary %}{{ n }}: {{ g }}{% if not forloop.last %} {% endif %}{% endfor %} |
{% endcomment %}
{% if goal|goal_instances_for:user %}
{% with goal|goal_instances_for:user|first as g %}
{# progress percentage #}
{{ g.progress|floatformat }}% | {% trans "History" %} | {% endwith %} {% else %}{% endif %} |