From ea9310f97aa5ec7fa733b3d5a85ac7bcc366ae46 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Wed, 29 Jan 2025 10:56:09 +0100 Subject: [PATCH] templates: disable boot OS components when no system is available Hide the OS table and the "Boot" button when no OS is found. --- ogcp/templates/actions/session.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ogcp/templates/actions/session.html b/ogcp/templates/actions/session.html index bcca791..0410754 100644 --- a/ogcp/templates/actions/session.html +++ b/ogcp/templates/actions/session.html @@ -16,6 +16,8 @@ {{ macros.cmd_selected_clients(selected_clients) }} +{% if os_groups|length > 0 %} +

{% if os_groups|length > 1 %} The selected clients have different installed OS: @@ -51,4 +53,10 @@ The selected clients have different installed OS: +{% else %} +

+ {{ _('No bootable OS') }} +
+{% endif %} + {% endblock %}