{% load i18n wagtailadmin_tags %} {% if tasks %} {% if searchform.is_searching %}
{% trans "Name" %} | {% if searchform.specific_task_model_selected %} {# TODO #} {% else %}{% trans "Task type" %} | {% endif %}{% trans "Used on" %} |
---|---|---|
{% if searchform.specific_task_model_selected %} {# TODO #} {% else %} | {{ task.content_type.name }} | {% endif %}{% 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 %} |
{% 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 %}