{% extends "base.html" %} {% block body %} {% include "partials/header.html" %} {% if doing_tasks %}
En cours {{ doing_tasks | length }}
{% for dt in doing_tasks %} {% set t = dt.task %} {# Deep-link to the task itself rather than its project section: the category page reads ``#ID-`` and opens the matching card in detail mode (#109). #} {% set task_href = "cat/" ~ dt.cat_id ~ ".html#ID-" ~ t.id %} {% include "partials/task_card.html" %} {% endfor %}
{% endif %}
{% for c in categories %} {% set cp = projects_by_cat[c.id] %} {% set total_tasks = cp | sum(attribute="total") %} {% set total_done = cp | sum(attribute="done") %} {% set agg_actual = aggregate_burndown(cp) %}
{{ c.name }}
{{ total_tasks - total_done }}
Ouvertes
{% for p in cp %} {% set doing = p.tasks | selectattr("status", "equalto", "doing") | list | length %} {% set dot_color = "#d0d7de" if doing == 0 else "color-mix(in srgb, " + c.color + " " + [30 + doing * 20, 100] | min | string + "%, white)" %} {% endfor %}
{% set color = c.color %} {% set actual = agg_actual %} {% include "partials/burndown.html" %}
{% endfor %}
{% endblock %} {% block modals %} {% set cat_id = "" %} {% include "modals/project.html" %} {% include "modals/category.html" %} {% endblock %}