From bb48136e6681e57197b68a30cf1e3bc3dafc7f94 Mon Sep 17 00:00:00 2001 From: elmgates Date: Tue, 8 Oct 2024 19:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AD=A4=E6=96=87=E4=BB=B6=E5=A4=B9=E4=B8=BA?= =?UTF-8?q?=E7=BD=91=E9=A1=B5=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python/templates/index.html | 153 ++++++++++++++++++++++++++++++++++++ 1 file changed, 153 insertions(+) create mode 100644 python/templates/index.html diff --git a/python/templates/index.html b/python/templates/index.html new file mode 100644 index 0000000..29dc600 --- /dev/null +++ b/python/templates/index.html @@ -0,0 +1,153 @@ + + + + + Hyper-V 虚拟机管理 + + + +

Hyper-V 虚拟机管理

+
+ + + + + + + + + + {% for vm in vms %} + + + + + + {% endfor %} + +
虚拟机名称状态操作
{{ vm.Name }} + {% if vm.State == 2 %} + 运行中 + {% elif vm.State == 3 %} + 已关闭 + {% else %} + 未知状态 + {% endif %} + + {% if vm.State == 2 %} + + + {% elif vm.State == 3 %} + + {% else %} + + {% endif %} +
+
+ + + + + +