James Iter 7 年之前
父節點
當前提交
b4ffe47a0f
共有 2 個文件被更改,包括 18 次插入2 次删除
  1. 2 2
      jimvc/themes/default/templates/guests_show.html
  2. 16 0
      jimvc/themes/default/templates/hosts_show.html

+ 2 - 2
jimvc/themes/default/templates/guests_show.html

@@ -1804,7 +1804,7 @@
                         <a data-autostart="{{ item.autostart }}" class="icon-os icon-autostart" title="{% if item.autostart != 0 %}切至手动启动{% else %}切至开机启动{% endif %}" href="javascript:;" onclick="autostart_at(this);" style="{% if item.autostart == 0 %}filter: grayscale(100%);{% endif %}"></a>
                     </td>
                     <td>{{ format_guest_status(item.status, item.progress)|safe }}</td>
-                    <td>{{ hosts_mapping_by_node_id[item.node_id | string].hostname }}</td>
+                    <td><a href="/guests?keyword={{ item.node_id | string }}">{{ hosts_mapping_by_node_id[item.node_id | string].hostname }}</a></td>
                     <td>
                         CPU :&nbsp;&nbsp;{{ item.cpu }}&nbsp;核<br />
                         内存 :&nbsp;&nbsp;{{ item.memory }}&nbsp;GB<br />
@@ -1835,7 +1835,7 @@
                     </td>
                     <td>
                         {{ item.ip }}<br>
-                        <a href="/config#vlan">{{ item.vlan.label }}</a>
+                        <a href="/config#vlan" title="{{ item.vlan.description }}">{{ item.vlan.label }}</a>
                     </td>
                     <td><span class="unreal_password">*********</span><span class="real_password" style="display: none;">{{ item.password }}</span></td>
                     <td>{{ format_datetime_by_tus(item.create_time) }}</td>

+ 16 - 0
jimvc/themes/default/templates/hosts_show.html

@@ -131,6 +131,22 @@
                                 <span>{{(((item.memory - item.memory_available) / item.memory) * 100) | int}}%</span>
                                 <i>内存使用率</i>
                             </div>
+                            <div class="bg-green host-specs">
+                                <div class="row">
+                                    <div class="col-md-4">
+                                        <span style="font-size: x-large; color: #97e6b7;">20 </span><span style="font-size: x-large">13</span>
+                                        <i>虚拟机实例</i>
+                                    </div>
+                                    <div class="col-md-4">
+                                        <span style="font-size: x-large; color: #97e6b7;">200 </span><span style="font-size: x-large">88</span>
+                                        <i>vCPU</i>
+                                    </div>
+                                    <div class="col-md-4">
+                                        <span style="font-size: x-large; color: #97e6b7;">230 </span><span style="font-size: x-large">196</span>
+                                        <i>内存</i>
+                                    </div>
+                                </div>
+                            </div>
                             <ul {% if not item.alive %}class="bg-gray"{% endif %}>
                                 <li>CPU: {{ item.cpu }} 核</li>
                                 <li>内存: {{ (item.memory / 1024 / 1024 / 1024)|int }} GB</li>