Browse Source

修正显示样式,宿主机变为计算节点

James Iter 9 years ago
parent
commit
4cd5e01435
4 changed files with 4 additions and 3 deletions
  1. 1 0
      docs/todo.md
  2. 1 1
      templates/guests_show.html
  3. 1 1
      templates/hosts_show.html
  4. 1 1
      templates/layout.html

+ 1 - 0
docs/todo.md

@@ -44,3 +44,4 @@
 - [x] 修改密码功能
 - [x] 修改密码功能
 - [ ] 密码[找回|重置]功能
 - [ ] 密码[找回|重置]功能
 - [ ] 前端页面校验字段有效值
 - [ ] 前端页面校验字段有效值
+- [ ] 当计算节点离线时,计算节点页面显示,清除离线计算节点显示的倒计时

+ 1 - 1
templates/guests_show.html

@@ -658,7 +658,7 @@
                     <td>{{ item.on_host }}</td>
                     <td>{{ item.on_host }}</td>
                     <td>CPU :&nbsp;&nbsp;{{ item.cpu }}&nbsp;核<br />内存 :&nbsp;&nbsp;{{ item.memory }}&nbsp;GB</td>
                     <td>CPU :&nbsp;&nbsp;{{ item.cpu }}&nbsp;核<br />内存 :&nbsp;&nbsp;{{ item.memory }}&nbsp;GB</td>
                     <td>{{ item.ip }}</td>
                     <td>{{ item.ip }}</td>
-                    <td><span class="unreal_password">******</span><span class="real_password" style="display: none;">{{ item.password }}</span></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>
                     <td>{{ format_datetime_by_tus(item.create_time) }}</td>
                     <td>
                     <td>
                         <div class="dropdown inline-block">
                         <div class="dropdown inline-block">

+ 1 - 1
templates/hosts_show.html

@@ -59,7 +59,7 @@
     <div class="panel">
     <div class="panel">
         <div class="panel-body">
         <div class="panel-body">
             <h3 class="title-hero" style="font-size: 24px;">
             <h3 class="title-hero" style="font-size: 24px;">
-                宿主机
+                计算节点
             </h3>
             </h3>
             <div>
             <div>
                 <div id="datatable-row-highlight_wrapper" class="dataTables_wrapper form-inline">
                 <div id="datatable-row-highlight_wrapper" class="dataTables_wrapper form-inline">

+ 1 - 1
templates/layout.html

@@ -336,7 +336,7 @@
                         <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>
                                 <i class="glyph-icon icon-linecons-desktop"></i>
-                                <span>宿主机</span>
+                                <span>计算节点</span>
                             </a>
                             </a>
                         </li>
                         </li>
                         <li>
                         <li>