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 --- .../base/resource/hostprofile_detail.html | 60 +++++++++++++--------- src/templates/base/resource/hosts.html | 20 ++++++-- 2 files changed, 53 insertions(+), 27 deletions(-) (limited to 'src/templates/base/resource') diff --git a/src/templates/base/resource/hostprofile_detail.html b/src/templates/base/resource/hostprofile_detail.html index 0b3262c..1cf2000 100644 --- a/src/templates/base/resource/hostprofile_detail.html +++ b/src/templates/base/resource/hostprofile_detail.html @@ -2,51 +2,46 @@ {% load staticfiles %} {% block content %} +

{{ flavor.name }}

Available at

-
    - {% for lab in hostprofile.labs.all %} -
  • {{lab.name}}
  • - {% endfor %} +
  • UNH IOL

RAM

-
- {{hostprofile.ramprofile.first.amount}}G, - {{hostprofile.ramprofile.first.channels}} channels + {{flavor.ram.value}} {{flavor.ram.unit}}

CPU

-
- + - + - +
Arch:{{hostprofile.cpuprofile.first.architecture}}{{ flavor.arch }}
Cores:{{hostprofile.cpuprofile.first.cores}}{{ flavor.cpu_count }}
Sockets:{{hostprofile.cpuprofile.first.cpus}}{{ flavor.sockets }}
@@ -54,31 +49,29 @@

Disk

-
- - + + - - + + - - + +
Size:{{hostprofile.storageprofile.first.size}} GiBDisk Size:{{flavor.disk_size.value}} {{flavor.disk_size.unit}}
Type:{{hostprofile.storageprofile.first.media_type}}Root Size:{{flavor.root_size.value}} {{flavor.root_size.unit}}
Mount Point:{{hostprofile.storageprofile.first.name}}Swap Size:{{flavor.swap_size.value}} {{flavor.swap_size.unit}}
-
+

Interfaces

-
@@ -89,10 +82,31 @@ - {% for intprof in hostprofile.interfaceprofile.all %} + {% for interface in flavor.interfaces %} + + + + + {% endfor %} + +
{{interface.name}}{{interface.speed.value}} {{interface.speed.unit}}
+
+
+
+
+

Images

+
+
+ + + + + + + + {% for image in flavor.images %} - - + {% endfor %} 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 @@ + - {% for host in hosts %} + {% for host in hosts %} + {% endfor %} -- cgit 1.2.3-korg
Name
{{intprof.name}}{{intprof.speed}}{{image.name}}
NameArchitecture Profile Booked Working
{{ 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 %}