From ecadb07367d31c0929212618e120130f54af78da Mon Sep 17 00:00:00 2001 From: Justin Choquette Date: Tue, 8 Aug 2023 11:33:57 -0400 Subject: MVP Change-Id: Ib590302f49e7e66f8d04841fb6cb97baf623f51a Signed-off-by: Justin Choquette --- src/templates/base/resource/hosts.html | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'src/templates/base/resource/hosts.html') diff --git a/src/templates/base/resource/hosts.html b/src/templates/base/resource/hosts.html index 9fc50ce..e01916a 100644 --- a/src/templates/base/resource/hosts.html +++ b/src/templates/base/resource/hosts.html @@ -5,25 +5,37 @@ Name + Architecture Profile Booked Working - {% for host in hosts %} + {% for host in hosts %} {{ host.name }} - {{ host.profile }} + {{ host.arch }} - {{ host.booked|yesno:"Yes,No" }} + {{ host.flavor.name }} - {{ host.working|yesno:"Yes,No" }} + {% if host.allocation != null %} + Yes + {% else %} + No + {% endif %} + + + {% if host.allocation.reason == "maintenance" %} + No + {% else %} + Yes + {% endif %} {% endfor %} -- cgit 1.2.3-korg