{% extends "base.html" %} {% block title %}tasks — gest{% endblock %} {% block nav_tasks %}class="active"{% endblock %} {% block content %}
Tasks
{{ tasks.len() }} task{% if tasks.len() != 1 %}s{% endif %}
{% if tasks.is_empty() %}

No tasks found.

{% else %}
gest task list --all
{% for row in rows %} {% endfor %}
ID Pri Title Status Info Tags
{% if row.is_blocked %} {% else %} {% match row.task.status %} {% when Status::Open %} {% when Status::InProgress %} {% when Status::Done %} {% when Status::Cancelled %} {% endmatch %} {% endif %} {{ row.task.id.short() }}{{ row.id_rest }} {% match row.task.priority %} {% when Some with (p) %} [P{{ p }}] {% when None %} {% endmatch %} {% if row.task.status.is_terminal() %} {{ row.task.title }} {% else %} {{ row.task.title }} {% endif %} {% if row.is_blocked %} blocked {% else if row.blocking.is_blocking %} blocking {% else %} {% match row.task.status %} {% when Status::Open %} open {% when Status::InProgress %} in-progress {% when Status::Done %} done {% when Status::Cancelled %} cancelled {% endmatch %} {% endif %} {% if row.is_blocked %} blocked by {{ row.blocking.blocked_by_ids.join(", ") }} {% else if row.blocking.is_blocking %} blocking others {% endif %} {% for tag in row.task.tags.iter() %} #{{ tag }}{{ " " }} {% endfor %}
{% endif %} {% endblock %}