{% if list_corpora %}
{% for key, corpora in list_corpora.items %}
{{ key }}
{% for corpus in corpora %}
{% for state in corpus.hyperdata.statuses %}
{% ifequal state.action "ngrams_extraction" %}
{% if state.complete %}
{% else %}
{% if state.error %}
{% else %}
{% for state in corpus.hyperdata.statuses %}
{% ifequal state.action "parsing" %}
{% endif %}
{% endif %}
{% endifequal %}
{% endfor %}
{% endifequal %}
{% ifequal state.action "ngrams_extraction" %}
{% endifequal %}
{% endfor %}
{% endfor %}
{% endfor %}
{% endif %}
{% endblock %}
{% for state in corpus.hyperdata.statuses %}
{% ifequal state.action "ngrams_extraction" %}
{% if state.complete %}
{% else %}
{% if state.error %}
{% else %}
{% for state in corpus.hyperdata.statuses %}
{% ifequal state.action "parsing" %}
{% endif %}
{% endif %}
{% endifequal %}
{% endfor %}
{% endifequal %}
{% ifequal state.action "ngrams_extraction" %}
{% endifequal %}
{% endfor %}
{% for state in corpus.hyperdata.statuses %}
{% ifequal state.action "parsing" %}
{% endif %}
{% endif %}
{% endifequal %}
{% endfor %}
{% endifequal %}
{% ifequal state.action "ngrams_extraction" %}
{% endifequal %}
{% endfor %}