{% extends "base.html" %} {% block title %}{{ project.title }} — TaskFlow{% endblock %} {% block content %} {% set total = project.tasks | length %} {% set done = project.tasks | selectattr('status', 'equalto', 'done') | list | length %} {% set in_prog = project.tasks | selectattr('status', 'equalto', 'in_progress') | list | length %} {% set todo_cnt = project.tasks | selectattr('status', 'equalto', 'todo') | list | length %}
{% for label, value, color in [ ('Total', total, 'var(--text)'), ('To do', todo_cnt, 'var(--muted)'), ('In progress', in_prog, '#857dff'), ('Done', done, '#4caf82'), ] %}
{{ value }}
{{ label }}
{% endfor %}
{% if project.tasks %} {% for task in project.tasks %} {% endfor %}
Task Status Priority Assignee Due date
{{ task.title }} {{ task.status.replace('_', ' ') | title }} {{ task.priority | title }} {{ task.assignee.username if task.assignee else '—' }} {{ task.due_date.strftime('%d %b %Y') if task.due_date else '—' }}
{% else %}
No tasks in this project yet.
Add first task
{% endif %}
Owner: {{ project.owner.username }} · Created: {{ project.created_at.strftime('%d %b %Y') }}
{% endblock %}