{% extends "layout.html" %} {% block content %}

Tasks

All Tasks
Due Today
{% for act in activities %} {% set act_tasks = [] %} {% for t in tasks %} {% if t.activity_id|string == act._id|string %} {% if act_tasks.append(t) %}{% endif %} {% endif %} {% endfor %}

{{ act.name }}

{% if act_tasks %}
    {% for task in act_tasks %} {% include 'task_row_partial' %} {% endfor %}
{% else %}
No open tasks
{% endif %}
{% endfor %} {% set no_act_tasks = [] %} {% for t in tasks %} {% if not t.activity_id %} {% if no_act_tasks.append(t) %}{% endif %} {% endif %} {% endfor %} {% if no_act_tasks %}

Inbox / No Activity

    {% for task in no_act_tasks %} {% include 'task_row_partial' %} {% endfor %}
{% endif %}
{% if templates %}
Manage Auto-Added Templates
    {% for t in templates %}
  • {{ t.name }} (on {{ t.activity_name|default('Unknown') }}) Edit
  • {% endfor %}
{% endif %}
{% set today_str = now_date_str %} {% macro task_row_partial() %} {% endmacro %} {% endblock %} {% macro task_row_partial() %} {% endmacro %} {% block task_row_content %}
  • {{ task.name }} {% if task.due_date %} {{ task.due_date.strftime('%d. %b %H:%M') }} {% endif %}
    {% if task.activity_id %}
    {% endif %}
  • {% endblock %}