+ {% 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 %}
+