{% macro render_revision(revision, list_link, search, index, organization_id) %} {% if revision %} {{ revision.id }} {% set search = revision.search %} {% set index = revision.index %} {% else %}(нет){% endif %} {% if list_link %} {% endif %} {% endmacro %} {% macro render_status(record=None, use_status=None, link_type=None, check_swarm=False) -%} {% with status = use_status or record.status %} {{ caller() }} {% endwith %} {% if record and check_swarm and not record.swarm %}  old {% endif %} {% if record and link_type %} {% if link_type == "indexation" %} {% else %} {% endif %} {% endif %} {%- endmacro %} {% macro new_indexation(id, index, backend, defaults, suffixes, organization_id) -%} {{ caller() }} {%- endmacro %} {% macro repeat_indexation(indexation) %} {{ caller() }} {%- endmacro %} {% macro stop_indexation(indexation) %} {{ caller() }} {%- endmacro %} {% macro stages_table(stages, plot_data) %}
{% for stage_type, info in stages %} {% if loop.index == 1 %} {% for status, count in info %}{% endfor %} {% endif %} {% for status, count in info %} {% endfor %} {% endfor %}
{{ status }}
{{ stage_type }} {{ intformat(count) }}
{% endmacro %} {% macro doc_counter(name, revision_id, indexation_id, use_indexstat='false') %}  url {% endmacro %} {% macro fail_indexations(search, index) %} {{ caller() }} {% endmacro %} {% macro manage_revision(revision) %}
{% if revision.status != 'active' %} {% endif %} {% if revision.status != 'deleted' %} {% endif %}
{% endmacro %} {% macro admin_org_link(org, text='') %} {% if text %}{{ text }}{% else %}{% if org.label %}{{ org.label }}{% else %}{{ org.directory_id }}{% endif %}{% endif %} {% endmacro %} {% macro render_push_meta(push) %}
{{ push.meta|to_json|e }}
{% endmacro %} {% macro render_push_actions(push) %}
{% endmacro %}