{% load i18n wagtailadmin_tags %} {% if tasks %} {% if searchform.is_searching %}

{% blocktrans count counter=tasks.paginator.count %} There is {{ counter }} match {% plural %} There are {{ counter }} matches {% endblocktrans %}

{% else %}

{% trans "Tasks" %}

{% endif %} {% if searchform.specific_task_model_selected %} {# TODO #} {% else %} {% endif %} {% for task in tasks %} {% if searchform.specific_task_model_selected %} {# TODO #} {% else %} {% endif %} {% endfor %}
{% trans "Name" %} {% trans "Task type" %} {% trans "Used on" %}
{{ task.content_type.name }} {% for workflow in task.active_workflows|slice:":5" %} {{ workflow.name }}{% if not forloop.last %}, {% endif %} {% empty %} {% trans "Not used" %} {% endfor %} {% if task.active_workflows.count > 5 %} {% blocktrans count counter=task.active_workflows.count|add:-5 %}+{{ counter }} more{% plural %}+{{ counter }} more{% endblocktrans %} {% endif %}
{% include "wagtailadmin/shared/ajax_pagination_nav.html" with items=tasks %} {% else %} {% if all_tasks.exists %}

{% blocktrans %}Sorry, no tasks match "{{ query_string }}"{% endblocktrans %}

{% else %}

{% trans "You haven't created any tasks." %} {% if createform %} {% blocktrans %} Why not create one now? {% endblocktrans %} {% endif %}

{% endif %} {% endif %}