{% extends "isearch/base.html" %} {% import "isearch/include/macros.html" as macros %} {% block title %}Список индексаций{% endblock %} {% block sources_active %}active{% endblock %} {% block container %}
Список ревизий {% 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 %}
id | {% if not name %}Источник | Индекс | {% endif %} {% if not organization %}Орг-ция | {% endif %}Статус | Начало | Прод-ость | Док-ов | Ревизия | Сервис | Комментарий | {% for log in logs %}
---|---|---|---|---|---|---|---|---|---|---|
{{ log.id }} | {% if not name %}{{ log.search }} | {{ log.index or "(default)" }} | {% endif %} {% if not organization %}{{ macros.admin_org_link(log.revision.organization) }} | {% endif %}{% 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 ""}} |