Explorar el Código

替换宿主机为计算节点

James Iter hace 8 años
padre
commit
788540f8ed

+ 5 - 5
templates/dashboard.html

@@ -31,27 +31,27 @@
             <div class="example-box-wrapper">
                 <div class="row">
                     <div class="col-md-2">
-                        <a href="/hosts" title="宿主机 CPU 总计" class="tile-box tile-box-shortcut btn-info">
+                        <a href="/hosts" title="计算节点 CPU 总计" class="tile-box tile-box-shortcut btn-info">
                             <div class="tile-content-wrapper">
                                 <i class="webhh icon-cpu-processor"></i>
                                 <div style="font-size: 20px; margin-top: 18px; right: 10px; position: absolute;">
                                     {{ hosts_sum.cpu }} 核
                                 </div>
                                 <div class="tile-header" style="opacity: .70;">
-                                    宿主机 CPU 总计
+                                    计算节点 CPU 总计
                                 </div>
                             </div>
                         </a>
                     </div>
                     <div class="col-md-2">
-                        <a href="/hosts" title="宿主机内存总计" class="tile-box tile-box-shortcut btn-warning">
+                        <a href="/hosts" title="计算节点内存总计" class="tile-box tile-box-shortcut btn-warning">
                             <div class="tile-content-wrapper">
                                 <i class="webhh icon-ram"></i>
                                 <div style="font-size: 20px; margin-top: 18px; right: 10px; position: absolute;">
                                     {{ (hosts_sum.memory / 1024 / 1024 / 1024)|int }} GB
                                 </div>
                                 <div class="tile-header" style="opacity: .70;">
-                                    宿主机内存总计
+                                    计算节点内存总计
                                 </div>
                             </div>
                         </a>
@@ -268,7 +268,7 @@
     <div class="panel">
         <div class="panel-body">
             <h3 class="title-hero">
-                宿主机 TOP <span style="font-size: 17px;">10</span>
+                计算节点 TOP <span style="font-size: 17px;">10</span>
             </h3>
             <div class="row">
                 <div class="col-md-4">

+ 2 - 2
templates/disk_create.html

@@ -114,9 +114,9 @@
                         </div>
                     </div>
                     <div id="on_host_form" class="form-group">
-                        <label class="col-sm-2 control-label"><span class="glyph-icon icon-desktop"></span>&nbsp;&nbsp;宿主机</label>
+                        <label class="col-sm-2 control-label"><span class="glyph-icon icon-desktop"></span>&nbsp;&nbsp;计算节点</label>
                         <div class="col-sm-6">
-                            <select id="on_host" name="on_host" title="宿主机" class="selectpicker">
+                            <select id="on_host" name="on_host" title="计算节点" class="selectpicker">
                             </select>
                         </div>
                     </div>

+ 2 - 2
templates/disks_show.html

@@ -140,7 +140,7 @@
         $('#mount_modal').on('show.bs.modal', function (me) {
             var url = '/api/guests?page=1&page_size=10000';
 
-            // 单机版加入与磁盘同一宿主机的过滤
+            // 单机版加入与磁盘同一计算节点的过滤
             {% if show_on_host %}
                 var on_host = $(me.relatedTarget).parent().parent().parent().parent().prev().prev().prev().text();
                 url += '&filter=on_host:eq:' + on_host;
@@ -383,7 +383,7 @@
                     <th>大小</th>
                     <th>设备号</th>
                     <th>所属虚拟机</th>
-                    <th style="{% if not show_on_host %}display: none;{% endif %}">所属宿主机</th>
+                    <th style="{% if not show_on_host %}display: none;{% endif %}">所属计算节点</th>
                     <th>磁盘性别</th>
                     <th>创建时间</th>
                     <th>操作</th>

+ 1 - 1
templates/guest_detail.html

@@ -992,7 +992,7 @@
                         </tr>
                         <tr>
                             <td>
-                                <span class="guest-label">所在宿主机:&nbsp;&nbsp;&nbsp;&nbsp;</span>
+                                <span class="guest-label">所在计算节点:&nbsp;&nbsp;&nbsp;&nbsp;</span>
                                 <span class="guest-desc">
                                 {{ guest_ret.data.on_host }}
                                 </span>

+ 1 - 1
templates/guests_show.html

@@ -890,7 +890,7 @@
             <div class="modal-body">
                 <input id="migrate_type" title="迁移类型" class="form-control" name="migrate_type" value="single" hidden>
                 <input id="migrate_instance_uuid" title="实例 UUID" class="form-control" name="uuid" hidden>
-                <select id="migrate_host" name="migrate_host" title="可迁移宿主机" class="chosen-select">
+                <select id="migrate_host" name="migrate_host" title="可迁移计算节点" class="chosen-select">
                 </select>
             </div>
             <div class="modal-footer">

+ 1 - 1
templates/host_detail.html

@@ -882,7 +882,7 @@
             contentType: "application/json; charset=utf-8",
             dataType: 'json',
             error: function () {
-                alter_danger('获取宿主机数据失败失败!');
+                alter_danger('获取计算节点数据失败失败!');
             },
             success: function (data, textStatus, xhr) {
                 host_info = data.data;

+ 1 - 1
templates/layout.html

@@ -343,7 +343,7 @@
                             </a>
                         </li>
                         <li>
-                            <a href="{{ url_for('v_hosts.show') }}" title="宿主机列表">
+                            <a href="{{ url_for('v_hosts.show') }}" title="计算节点列表">
                                 <i class="glyph-icon icon-linecons-desktop"></i>
                                 <span>计算节点</span>
                             </a>