{% extends "base.html" %} {% block title %}Projects — td{% endblock %} {% block content %}

Projects

{% if projects.is_empty() %}

No projects yet

Run td project init <name> to create one.

{% else %}
{% for p in projects %}
{% match p %} {% when ProjectCard::Ok { name, open, in_progress, closed, total } %}

{{ name }}

{% if *in_progress > 0 %} {{ in_progress }} in progress {% endif %} {{ open }} open {% if *in_progress == 0 %} 0 in progress {% endif %} {{ closed }} closed
{% if *total > 0 %} {% endif %} {% when ProjectCard::Err { name, error } %}

{{ name }}

error

{{ error }}

{% endmatch %}
{% endfor %}
{% endif %} {% endblock %}