{# -*- coding: utf-8 -*- This file is part of Invenio. Copyright (C) 2025 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more details. #} {# TODO: Handle multiple check runs of file format checks #} {% set check = checks | first %} {% set severity = check.result.errors | map(attribute='severity') | first %}
{% set has_errors = check.result.errors %} {% set icon = has_errors and severity_level_icons_tpl.severity_level_icons['warning'] or severity_level_icons_tpl.severity_level_icons['success'] %}
{{ check.result.title }}

{{ check.result.description | safe }}

{% if has_errors %}

The following files are not using open or scientific formats:

    {# NOTE: We just care about listing filenames #} {% for error in check.result.errors %} {% set file_name = error.field.split('entries.')[-1] %}
  • {{ file_name }}
  • {% endfor %}
{% endif %}
{% include 'invenio_checks/requests/help_message.html' %}