{% extends "base.html" %} {% import "_macros.html" as m %} {% from "_macros.html" import icon %} {% set active_nav = 'open' %} {% block title %}My tasks{% endblock %} {% block heading %}Hi {{ current_user.name.split(' ')[0] }}{% endblock %} {% block content %} {% if not tasks %}
{{ icon('check-circle') }}

All caught up!

You've cleared every task.

{% else %}
You have {{ tasks | length }} task{{ '' if tasks|length == 1 else 's' }} to do — tap the circle to complete.
{% for task in tasks %} {{ m.task_card(task, allow_complete=True) }} {% endfor %} {% endif %} {% endblock %}