{# GET /admin/ecb — crate::pages::admin::ecb::ui::EcbPage #} {% extends "ui/base.html" %} {% block title %}{{ nav.tr("ecb-title") }}{% endblock %} {% block content %}

{{ nav.tr("ecb-title") }}

{{ nav.tr("ecb-heading") }}

{{ nav.tr("ecb-description") }}

{% include "pages/admin/ecb/status.html" %}

{{ nav.tr("ecb-import-attempts") }} {{ page.batches.len() }} {%- if page.failure_count() > 0 %}{{ page.failed_count_label() }}{% endif -%}

{% if page.batches.is_empty() %}

{{ nav.tr("ecb-no-attempts-hint") }}

{% else %}
{% for batch in page.batches %} {% if let Some(message) = batch.error_message %} {% endif %} {% endfor %}
#{{ nav.tr("ecb-th-result") }}{{ nav.tr("ecb-th-started") }}{{ nav.tr("ecb-th-finished") }} {{ nav.tr("ecb-th-took") }}{{ nav.tr("ecb-th-window") }}{{ nav.tr("ecb-th-observations") }} {{ nav.tr("ecb-th-verified-through") }}
{{ batch.batch_id }} {%- if batch.succeeded() %}{{ nav.tr("ecb-batch-succeeded") }} {%- else if batch.running() %}{{ nav.tr("ecb-batch-running") }} {%- else %}{{ nav.tr("ecb-batch-failed") }}{% endif -%} {{ batch.started() }} {%- if let Some(finished) = batch.finished() %}{{ finished }} {%- else %}{{ nav.tr("ecb-still-running") }}{% endif -%} {%- if let Some(took) = batch.took(nav.locale) %}{{ took }} {%- else %}{% endif -%} {{ batch.window() }}
{{ batch.endpoint }}
{{ batch.observations(nav.locale) }} {%- if let Some(date) = batch.verified_through_date %}{{ date }} {%- else %}{% endif -%}
{{ message }}

{{ nav.tr("ecb-audit-hint") }}

{% endif %}
{% endblock %}