{% for task in tasks %}

{{ task.title }}

{% if task.status.value == "todo" %}⭕ 待处理 {% elif task.status.value == "in_progress" %}🔄 进行中 {% else %}✅ 已完成{% endif %} {% if task.priority.value == "urgent" %}🔴 紧急 {% elif task.priority.value == "high" %}🟠 高 {% elif task.priority.value == "medium" %}🟡 中 {% else %}🟢 低{% endif %} {% if task.time_spent > 0 %} ⏱️ {{ task.format_time_spent() }} {% endif %} {% if task.tags %} {% for tag in task.tags %} 🏷️ {{ tag }} {% endfor %} {% endif %} {% if task.project %} 📁 {{ task.project }} {% endif %}
{% if task.due_date %}
📅 {{ task.due_date.strftime('%Y-%m-%d') }} {% if task.is_overdue() %} ⚠️ 已逾期 {% elif task.days_until_due() is not none %} ({{ task.days_until_due() }}天后) {% endif %}
{% endif %}
🆔 {{ task.id[:8] if task.id|string|length > 10 else task.id }}
{% if task.description %}

{{ task.description }}

{% endif %}
📅 创建时间
{{ task.created_at.strftime('%Y-%m-%d %H:%M') }}
🔄 更新时间
{{ task.updated_at.strftime('%Y-%m-%d %H:%M') }}
{% if task.due_date %}
⏰ 截止时间
{{ task.due_date.strftime('%Y-%m-%d %H:%M') }}
{% endif %}
⏱️ 累计工时
{{ task.format_time_spent() }} ({{ task.time_spent }} 分钟)
🆔 完整ID
{{ task.id }}
{% if task.status.value != "done" %} {% endif %} {% if task.status.value == "todo" %} {% endif %} {% if task.status.value == "in_progress" %} {% endif %}
{% endfor %} {% if not tasks %}
📭

暂无任务,添加一个开始吧!

{% endif %}