From 31dc78ea35cf207cb88a4e0cba93c89bc7010886 Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Tue, 19 Mar 2019 16:22:31 -0400 Subject: Add host detail view Change-Id: Ie385fe3f2fbe3b178f00928914d47a34b181d05e Signed-off-by: Sawyer Bergeron --- src/templates/dashboard/lab_detail.html | 2 + src/templates/resource/hostprofile_detail.html | 116 +++++++++++++++++++++++++ src/templates/resource/hosts.html | 2 +- 3 files changed, 119 insertions(+), 1 deletion(-) create mode 100644 src/templates/resource/hostprofile_detail.html (limited to 'src/templates') diff --git a/src/templates/dashboard/lab_detail.html b/src/templates/dashboard/lab_detail.html index a30ac9e..7d018ca 100644 --- a/src/templates/dashboard/lab_detail.html +++ b/src/templates/dashboard/lab_detail.html @@ -62,6 +62,8 @@ {{profile.name}} {{profile.description}} + {{profile.labs}} + Profile {% endfor %} diff --git a/src/templates/resource/hostprofile_detail.html b/src/templates/resource/hostprofile_detail.html new file mode 100644 index 0000000..0776b9e --- /dev/null +++ b/src/templates/resource/hostprofile_detail.html @@ -0,0 +1,116 @@ +{% extends "base.html" %} +{% load staticfiles %} + +{% block content %} +
+
+
+
+

Available at

+ Expand +
+
+ + + + +
+
    + {% for lab in hostprofile.labs.all %} +
  • {{lab.name}}
  • + {% endfor %} +
+
+
+
+
+
+

RAM

+ Expand +
+
+ + + + +
{{hostprofile.ramprofile.first.amount}}G, + {{hostprofile.ramprofile.first.channels}} channels
+
+
+
+
+

CPU

+ Expand +
+
+ + + + + + + + + + + + + +
Arch:{{hostprofile.cpuprofile.first.architecture}}
Cores:{{hostprofile.cpuprofile.first.cores}}
Sockets:{{hostprofile.cpuprofile.first.cpus}}
+
+
+
+
+
+
+

Interfaces

+ Expand +
+
+ + {% for intprof in hostprofile.interfaceprofile.all %} + + + + {% endfor %} +
+ + + + + + + + + +
Name:{{intprof.name}}
Speed:{{intprof.speed}}
+
+
+
+
+
+
+
+

Disk

+ Expand +
+
+ + + + + + + + + + + + + +
Size:{{hostprofile.storageprofile.first.size}} GiB
Type:{{hostprofile.storageprofile.first.media_type}}
Mount Point:{{hostprofile.storageprofile.first.name}}
+
+
+
+
+{% endblock content %} diff --git a/src/templates/resource/hosts.html b/src/templates/resource/hosts.html index 4bf64e0..69b7231 100644 --- a/src/templates/resource/hosts.html +++ b/src/templates/resource/hosts.html @@ -17,7 +17,7 @@ {{ host.name }} - {{ host.profile }} + {{ host.profile }} {{ host.booked }} -- cgit 1.2.3-korg