{#- Minimalist single-color line icons (inherit color via currentColor) -#} {% macro icon(name, cls="") %} {% endmacro %} {% macro task_card(task, show_assignee=False, allow_complete=False) %}
{{ task.title }}
{% if show_assignee %}
{{ icon('user', 'ico-sm') }} {{ task.assignee_name }}
{% endif %}
{% if task.status == 'completed' %} {{ icon('check', 'ico-sm') }} Completed {{ task.completed_at | nicedatetime }} {% else %} {{ icon('calendar', 'ico-sm') }} {{ task.due_date | nicedate }} {% if task.spillover %} Spilled over ยท {{ task.days_late }}d late {% elif task.overdue %} Overdue {% endif %} {% endif %}
{% if allow_complete and task.status == 'open' %}
{% else %} {% endif %}
{% endmacro %}