{% extends "isearch/base.html" %} {% import "isearch/include/macros.html" as macros %} {% block title %}Список индексаций{% endblock %} {% block sources_active %}active{% endblock %} {% block container %}

Индексации {% if name %}{{ name }} ({{ index or "default" }}) {% else %} - все источники{% endif %} {% if organization %}({{ organization.label }}){% endif %}

{% if name %}

Список ревизий {% if organization %}{{ organization.label }}{% endif %}

{% call macros.new_indexation(name, index, backend, defaults, suffixes, organization.label) %} Запустить новую индексацию {% endcall %}

{% endif %}

{% call macros.fail_indexations(name, index) %} Зафейлить зависшие индексации {% endcall %}

{% if not name %} {% endif %} {% if not organization %} {% endif %} {% for log in logs %} {% if not name %} {% endif %} {% if not organization %} {% endif %} {% endfor %}
idИсточник ИндексОрг-цияСтатус Начало Прод-ость Док-ов Ревизия Сервис Комментарий
{{ log.id }}{{ log.search }} {{ log.index or "(default)" }}{{ macros.admin_org_link(log.revision.organization) }} {% call macros.render_status(log, link_type="indexation", check_swarm=True) %}{{ log.status }}{% endcall %} {% if log.status not in ('fail', 'done') %} {% call macros.stop_indexation(log) %} {% endcall %} {% else %} {% call macros.repeat_indexation(log) %} {% endcall %} {% endif %} {{ log.start_time }} {{ human_delta((log.end_time or now()) - log.start_time)}} {{ intformat(log.documents_count) or 0 }} {% if log.expected_documents_count is not none %} / {{ intformat(log.expected_documents_count) or 0 }} {% endif %} {{ macros.render_revision(log.revision) }} {{ log.revision.service if log.revision else "(нет)"}} {{ log.comment|truncate(100) or ""}}
{% with objects=logs %} {% include 'isearch/pager.html' %} {% endwith %} {% endblock %}