{#- The scans page: the start form (prefilled with the saved settings), the progress of the UI's scan and the paged run history. htmx, loaded here only, polls the progress readout. In serve the queue card comes first and the history says who asked for each run; read-only serve drops the start form. -#} {% extends "base.html" %} {% block title %}Scans · kubedelos{% endblock %} {% block head %} {%- endblock %} {% block run_line %}

Scans

{% endblock %} {% block content %} {%- if serve %} {% include "partials/scan_queue.html" %} {%- endif %} {%- if can_write(request) %}

Start a scan of {{ context }}

{%- if form_error %} {%- endif %} {%- if not scannable %}

{{ context }} is not in your kubeconfig, so it can't be scanned; its past runs are below.

{%- else %}
Package types
{%- for name in pkg_choices %} {%- endfor %}
saved: {{ form.pkg_types_saved }}
Result cache
off: uses the 24 h cache
{%- endif %}
{%- endif %} {#- The live region stays put while htmx swaps the readout inside it, so screen readers announce each update. #}
{% include "partials/scan_progress.html" %}

Run history

{% if total == 0 %}

No scans of {{ context }} yet.

{% elif past_end %}

page {{ page }} is past the end ({{ total }} {{ total | plural("run") }}). Go to the last page.

{% else %}
{%- if serve %} {%- endif %} {%- for row in rows %} {%- if serve %} {%- endif %} {%- endfor %}
Status Run Scope Packages Images Failed DurationBy
{{ row.status }}{% if row.reason %}
{{ row.reason }}
{% endif %}
{% if row.href %}Run {{ row.number }} · compare · report{% else %}Run {{ row.number }}{% endif %} {{ describe_scope(row.scope) }} {{ describe_pkg_types(row.pkg_types) }} {{ row.images }} {% if row.failed_href %}{{ row.failed }}{% else %}{{ row.failed }}{% endif %}{% if row.retry_href %} · retry{% endif %} {% if row.times_href %}{{ row.duration }}{% else %}{{ row.duration }}{% endif %}{{ row.by }}
{% endif %}
{% endblock %}