{# The #status-message clear and the strip refresh are for a scan submit only: on a poll the clear would erase a 429 shown mid-scan, and the refresh would re-render the strip every second. When an Abort lands after the scan has ended the Scan button must take focus, but htmx focuses the main swap's autofocus after the out-of-band ones, so the status area is told not to ask. The title is top-level and first because htmx sets document.title only from a title at the response root. page_title never names the job's title, which the tab list and history would show to anybody. #} {{ page_title }} {% import "partials/scan_button.html" as scan_button_state with context %} {% set scan_takes_focus = focus_scan and not scan_button_state.scan_disabled %} {% with focus_status_area = focus_status_area and not scan_takes_focus %}{% include "partials/status.html" %}{% endwith %} {% with oob = true, autofocus_scan = focus_scan %}{% include "partials/scan_button.html" %}{% endwith %} {% if clear_message %}
{% endif %} {% if refresh_checks %}{% with oob = true %}{% include "partials/checks.html" %}{% endwith %}{% endif %}