{% extends "base.html" %} {% import "_macros.html" as m %} {% from "_macros.html" import icon %} {% set active_nav = 'open' %} {% block title %}Open tasks{% endblock %} {% block heading %}Open tasks{% endblock %} {% block content %} {% if not groups %}
{{ icon('team') }}

No team members yet.

Add your team
{% elif total_open == 0 %}
{{ icon('check-circle') }}

All clear

Your whole team is caught up. Nothing open right now.

{{ icon('plus', 'ico-sm') }} Assign a task
{% else %}
{{ total_open }} open task{{ '' if total_open == 1 else 's' }}
{% for group in groups %}

{{ group.subordinate.name }} {{ group.tasks | length }}

{% if group.tasks %} {% for task in group.tasks %} {{ m.task_card(task, allow_complete=True) }} {% endfor %} {% else %}

All done here.

{% endif %}
{% endfor %} {% endif %} {{ icon('plus') }} {% endblock %}