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 @@ + + +
+ +| 虚拟机名称 | +状态 | +操作 | +
|---|---|---|
| {{ vm.Name }} | ++ {% if vm.State == 2 %} + 运行中 + {% elif vm.State == 3 %} + 已关闭 + {% else %} + 未知状态 + {% endif %} + | ++ {% if vm.State == 2 %} + + + {% elif vm.State == 3 %} + + {% else %} + + {% endif %} + | +