{% extends "wagtailadmin/generic/index.html" %} {% load i18n wagtailadmin_tags %} {% block content %}

{% if view.header_icon %}{% icon name=view.header_icon class_name="header-title-icon" %}{% endif %} {{ view.page_title }}{% if view.subtitle %} {{ view.subtitle }}{% endif %}

{% if tasks %} {% for task in tasks %} {% endfor %}
{% trans "Name" %} {% trans "Type" %} {% trans "Used on" %}
{{ task }} {% if not task.active %} Disabled {% endif %}
{{ task.specific.get_verbose_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 %}
{% else %} {% url view.add_url_name as add_url %} {% if showing_disabled %}

{% blocktrans %}No tasks have been created. Why not add one?{% endblocktrans %}

{% else %}

{% blocktrans %}There are no enabled tasks. Why not add one?{% endblocktrans %}

{% endif %} {% endif %}
{% endblock %}