{% if tasks|length>0 or new_tasks|length>0%}

Command>

[X]
{% if new_tasks|length > 0 %}

Tasks in the queue:

{% for new_task in new_tasks %}

{{loop.index}}. {{ new_task.command }}

{% endfor %}

{% endif %} {% for task in tasks %}

TaskID:{{ task.id }} sent | User:{{ task.user }} | ImplantID:{{task.implant_numeric_id}} | Context:TBC | {{task.sent_time}}

{{ task.command }}

TaskID:{{ task.id }} returned | User:{{ task.user }} | ImplantID:{{task.implant_numeric_id}} | Context:TBC | {{task.completed_time}}

{% autoescape false %} {{ task.output | replace("\n\n","
") | replace("\n","
")}} {% endautoescape %}

{% endfor %}
{% endif %}