{% include 'nav_bar.html' %}
{% include 'hunter/menu_sidebar.html' %}
{%if dict_task['state']=='pending'%} pending {%elif dict_task['state']=='completed'%}  completed {%elif dict_task['state']=='paused'%}  paused {%elif dict_task['state']=='running'%} running {%endif%}

{{dict_task['name']}} {%if dict_task['state']!='completed'%} [{{ dict_task['progress']}}%] {%endif%}

{%if dict_task['state']=='paused'%} {%endif%} {%if dict_task['state']=='running' or dict_task['state']=='pending'%} {%endif%}

Date {{dict_task['date'][0:4]}}/{{dict_task['date'][4:6]}}/{{dict_task['date'][6:8]}}
Search date {{dict_task['date_from'][0:4]}}/{{dict_task['date_from'][4:6]}}/{{dict_task['date_from'][6:8]}} - {{dict_task['date_to'][0:4]}}/{{dict_task['date_to'][4:6]}}/{{dict_task['date_to'][6:8]}}
Description {{dict_task['description']}}
Tags {%for tag in dict_task['tags']%} {{ tag }} {%endfor%}
Creator {{dict_task['creator']}}
Sources
{%if not dict_task['sources']%} All Souces {%else%} {%for source in dict_task['sources']%} {{source}} {%endfor%} {%endif%}

{{ rule_content }}

{%if dict_task['items']%}
{% for item in dict_task['items'] %} {% endfor %}
Date Item Id
{{item['date'][0:4]}}/{{item['date'][4:6]}}/{{item['date'][6:8]}}
{{ item['id'] }}
{% for tag in item['tags'] %} {{ tag }} {% endfor %}

{% endif %}