{% load mathfilters %} {% if total == 0 %}
no tasks
{% elif n_complete == total %}
{{ n_complete }} / {{ total }}
{% else %} {% with p_complete=n_complete|div:total|mul:100 %} {% with p_todo=n_todo|div:total|mul:100 %} {% with p_out=n_out|div:total|mul:100 %} {% with p_missing=n_missing|div:total|mul:100 %}
{% if n_complete > 0 %}
{% endif %} {% if n_out > 0 %}
{% endif %} {% if n_todo > 0 %}
{% endif %} {% if n_missing > 0 %}
{% endif %}
{{ n_complete }} / {{ total }}
{% endwith %} {% endwith %} {% endwith %} {% endwith %} {% endif %}