{% extends "layout.html" %} {% from "_helpers.html" import status_info, initialize_datatables, build_state_text %} {% block title %} Task queue - Copr {% endblock %} {% block header %} Task queue - Copr {% endblock %} {%block main_menu_status %}active{% endblock %} {% block breadcrumbs %} {% endblock %} {% block body %}

Task queue

{% block status_body %} {% set bg = "" if not bg_tasks_cnt else "(+ {} others with lower priority)".format(bg_tasks_cnt) %}

{% if number == 0 %} No tasks {{ bg }} are {% elif number == 1 %} {{ number }} task {{ bg }} is {% else %} {{ number }} tasks {{ bg}} are {% endif %} in the {{ state_of_tasks }} state.

{% if state_of_tasks == "pending" %}

See more detailed statistics.

{% endif %}

{{ build_state_text(state_of_tasks) }} - {{ state_of_tasks|build_state_description }}

{{ status_info(type=state_of_tasks, tasks=tasks) }} {{ initialize_datatables(order="desc") }} {% endblock %} {% endblock %}