{# This table uses pairs of rows, so it must be manually striped #} {% for path in paths %} {% set has_errors = info.errors[path]|length > 0 %} {% set has_warnings = info.warnings[path]|length > 0 %} {% set row_id = path|string|slugify %} {# Manual striping for pairs of rows #} {% set row_bg_class = "" %} {% if loop.index is odd %} {% set row_bg_class = "page-table-striped-odd" %} {% endif %} {% set path_style_class = "" %} {% if has_errors %} {% set path_style_class = "text-danger" %} {% elif has_warnings %} {% set path_style_class = "text-warning" %} {% endif %} {% if phase == "release_candidate_draft" %} {% endif %} {% endfor %}
{% set icon_class = "text-success" %} {% if has_errors %} {% set icon_class = "text-danger" %} {% elif has_warnings %} {% set icon_class = "text-warning" %} {% endif %} {% if path in info.artifacts %} {% elif path in info.metadata %} {% else %} {% endif %} {% if has_errors or has_warnings %} {{ path }} {% else %} {{ path }} {% endif %}
{% if has_errors %} Show {{ info.errors[path]|length }} {{ "error" if info.errors[path]|length == 1 else "errors" }} {% elif has_warnings %} Show {{ info.warnings[path]|length }} {{ "warning" if info.warnings[path]|length == 1 else "warnings" }} {% elif info.successes[path] %} Show report {% else %} No checks run {% endif %} {% if phase == "release_candidate_draft" %} {% elif phase == "release_candidate" %} Download {% endif %}
Download Tools
{{ dialog.delete_modal(row_id, "Delete file", "file, and any associated metadata files", as_url(routes.draft.delete_file, project_name=project_name, version_name=version_name) , delete_file_form, "file_path") }}