{#
# -*- coding: utf-8 -*-
#
# Copyright (C) 2022 CERN.
# Copyright (C) 2024 KTH Royal Institute of Technology.
# Copyright (C) 2025 Northwestern University.
#
# Invenio App RDM is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
-#}

{{ _("The following files were flagged as 'unhealthy'. This means that the checksum check failed or timed out. Please take any action if needed.") }}

{% for entry in entries -%}
{{ _("ID: {}").format(entry.file.id) }}
{{ _("URI: {}").format(entry.file.uri) }}
{%- if 'filename' in entry %}
{{ _("Name: {}").format(entry.filename) }}
{%- endif %}
{{ _("Created: {}").format(entry.file.created) }}
{{ _("Checksum: {}").format(entry.file.checksum) }}
{{ _("Last check date: {}").format(entry.file.last_check_at) }}
{{ _("Last check FAILED with result: {}").format(entry.file.last_check) }}
{%- if 'record' in entry %}
{{ _("Record: {}").format(invenio_url_for("invenio_app_rdm_records.record_detail", pid_value=entry.record.id)) }}
{%- endif %}
{%- if 'draft' in entry %}
{{ _("Draft: {}").format(invenio_url_for("invenio_app_rdm_records.deposit_edit", pid_value=entry.draft.id)) }}
{%- endif %}
{{ "-" * 80 }}
{% endfor %}
