<th>
<span class="summary-info-title">${_('General Information')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif">
</td>
<td>
<th>
<span class="summary-info-title">${_('Name')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
- ${model.name | h}
+ <span class="summary-info-data">${model.name | h}</span>
</td>
</tr>
<tr>
<th>
<span class="summary-info-title">${_('Status')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
- ${str_status(virt.status(), _) | h}
+ <span class="summary-info-data">${str_status(virt.status(), _) | h}</span>
</td>
</tr>
<tr>
<th>
<span class="summary-info-title">${_('Unique key')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
- ${model.uniq_key | h}
+ <span class="summary-info-data">${model.uniq_key | h}</span>
</td>
</tr>
<tr>
<th>
<span class="summary-info-title">${_('Domain Name')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
- ${virt.get_domain_name() | h}
+ <span class="summary-info-data">${virt.get_domain_name() | h}</span>
</td>
</tr>
<tr>
<th>
<span class="summary-info-title">${_('Autostart')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
%if autostart is True:
- ${_('Enabled')}
+ <span class="summary-info-data">${_('Enabled')}</span>
%else:
- ${_('Disabled')}
+ <span class="summary-info-data">${_('Disabled')}</span>
%endif
</td>
</tr>
<th>
<span class="summary-info-title">${_('Hypervisor')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
%if not info["type"] is None:
- ${info["type"] | h}
+ <span class="summary-info-data">${info["type"] | h}</span>
%if not info["hv_version"] is None and not info["hv_version"] == -1:
(${info["hv_version"] | h})
%endif
%else:
- ${_('Unknown')}
+ <span class="summary-info-data">${_('Unknown')}</span>
%endif
</td>
</tr>
<th>
<span class="summary-info-title">${_('OS Type')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
%if not info["os"] is None:
- ${info["os"] | h}
+ <span class="summary-info-data">${info["os"] | h}</span>
%else:
- ${_('Unknown')}
+ <span class="summary-info-data">${_('Unknown')}</span>
%endif
</td>
</tr>
<th>
<span class="summary-info-title">${_('Tags')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
+ <span class="summary-info-data">
%if len(model.tags) > 0:
% for i in xrange(len(model.tags)):
%if len(model.tags) - 1 == i:
- ${model.tags[i].name | h}
+ ${model.tags[i].name | h}
%else:
- ${model.tags[i].name | h} ,
+ ${model.tags[i].name | h} ,
%endif
% endfor
%else:
- ${_('No tag')}
+ ${_('No tag')}
%endif
+ </span>
</td>
</tr>
</table>
<th>
<span class="summary-info-title">${_('CPU Info')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
<th>
<span class="summary-info-title">${_('VCPUS')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
- TODO
+ <span class="summary-info-data">TODO</span>
</td>
</tr>
<tr>
<th>
<span class="summary-info-title">${_('CPU time(seconds)')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
- ${"%.2f" % (info["cpu"] / (1000.00 * 1000.00 * 1000.00)) | h}
+ <span class="summary-info-data">${"%.2f" % (info["cpu"] / (1000.00 * 1000.00 * 1000.00)) | h}</span>
</td>
</tr>
</table>
<th>
<span class="summary-info-title">${_('VNC Info')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
<th>
<span class="summary-info-title">${_('VNC Listen')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
- TODO
+ <span class="summary-info-data">TODO</span>
</td>
</tr>
<tr>
<th>
<span class="summary-info-title">${_('VNC Port')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
- TODO
+ <span class="summary-info-data">TODO</span>
</td>
</tr>
<tr>
<th>
<span class="summary-info-title">${_('Keymap')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
- TODO
+ <span class="summary-info-data">TODO</span>
</td>
</tr>
</table>
<th>
<span class="summary-info-title">${_('Disk Info')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
<td>
<div class="info_desc">
<div id="disk_toggle_button_${count}" class="info_desc_name">
- <span>${_('Disk Name')}</span> : <span class="light-text">${disk['target']['dev'] |h}</span>
+ <span>${_('Name')}</span> : <span class="light-text">${disk['target']['dev'] |h}</span>
</div>
<div class="info_desc_value">
- <span>${_('Disk Size')}</span> : <span class="light-text">${disk['source']['size'] |h}</span>
+ <span>${_('Capacity (MB)')}</span> : <span class="light-text">${disk['source']['size'] |h}</span><span class="dark-text autounit">(${view_autounit(disk['source']['size'], unit=('MB','GB','TB', 'PB', 'EB'), print_unit=True) |h})<span>
</div>
</div>
<div style="clear:both"></div>
<table>
<tbody>
<tr>
- <td class="info_detail_name">${_('Disk Name')}</td>
+ <td class="info_detail_name">${_('Name')}</td>
<td class="info_detail_value"><pre>${disk['target']['dev'] | h}</pre></td>
</tr>
<tr>
- <td class="info_detail_name">${_('Disk Size')}</td>
- <td class="info_detail_value"><pre>${disk['source']['size'] | h}</pre></td>
+ <td class="info_detail_name">${_('Capacity (MB)')}</td>
+ <td class="info_detail_value"><span>${disk['source']['size'] | h}</span><span class="dark-text autounit">(${view_autounit(disk['source']['size'], unit=('MB','GB','TB', 'PB', 'EB'), print_unit=True) |h})<span></td>
</tr>
<tr>
- <td class="info_detail_name">${_('Disk Type')}</td>
+ <td class="info_detail_name">${_('Type')}</td>
<td class="info_detail_value"><pre>${disk['type'] | h}</pre></td>
</tr>
<tr>
<th>
<span class="summary-info-title">${_('Memory Info')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
<th>
<span class="summary-info-title">${_('Memory Size (MB)')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
- <span>${view_autounit(info["memory"]) | h}</span><span class="dark-text autounit">${view_autounit(info["memory"], print_unit=True) | h}</span>
+ <span>${view_autounit(info["memory"], unit=('KB','MB')) | h}</span><span class="dark-text autounit">(${view_autounit(info["memory"], unit=('MB','GB','TB', 'PB', 'EB'), print_unit=True) | h})</span>
</td>
</tr>
</table>
<th>
<span class="summary-info-title">${_('Interface Info')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
<span>${_('Source Bridge')}</span> : <span class="light-text">${interface['source']['bridge'] |h}</span>
</div>
<div class="info_desc_value">
- <span>${_('Interface Type')}</span> : <span class="light-text">${interface['type'] |h}</span>
+ <span>${_('Type')}</span> : <span class="light-text">${interface['type'] |h}</span>
</div>
</div>
<div style="clear:both"></div>
<td class="info_detail_value"><pre>${interface['source']['bridge'] | h}</pre></td>
</tr>
<tr>
- <td class="info_detail_name">${_('Interface Type')}</td>
+ <td class="info_detail_name">${_('Type')}</td>
<td class="info_detail_value"><pre>${interface['type'] | h}</pre></td>
</tr>
<tr>
<th>
<span class="summary-info-title">${_('Network Info')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
<td>
<div class="info_desc">
<div id="network_toggle_button_${count}" class="info_desc_name">
- <span>${_('Network Device')}</span> : <span class="light-text">${net_name |h}</span>
+ <span>${_('Device')}</span> : <span class="light-text">${net_name |h}</span>
</div>
<div class="info_desc_value">
% if net_info[net_name]['running'] is True:
<table>
<tbody>
<tr>
- <td class="info_detail_name">${_('Network Device')}</td>
+ <td class="info_detail_name">${_('Device')}</td>
<td class="info_detail_value"><pre>${net_name | h}</pre></td>
</tr>
<tr>
- <td class="info_detail_name">${_('Network Status')}</td>
+ <td class="info_detail_name">${_('Status')}</td>
<td class="info_detail_value"><pre>${locale_bool(net_info[net_name]['running'], _) | h}</pre></td>
</tr>
<tr>
<th>
<span class="summary-info-title">${_('Storage Pool Information')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
<span>${_('Name')}</span> : <span class="light-text">${pool_info['name'] | h}</span>
</div>
<div class="info_desc_value">
- <span>${_('Type')}</span> : <span class="light-text">${pool_info['type'] | h}</span><span><img alt="" src="${ctx.homepath}/static/images/tag-space.gif"/></span><span>${_('Capacity')} (MB)</span> : <span class="light-text">${int(pool_info['capacity']) / (1024 * 1024) | h}</span>
+ <span>${_('Type')}</span> : <span class="light-text">${pool_info['type'] | h}</span><span><img alt="" src="${ctx.homepath}/static/images/tag-space.gif"/></span><span>${_('Capacity')} (MB)</span> : <span class="light-text">${view_autounit(pool_info['capacity'], unit=('B','KB','MB')) | h}</span><span class="dark-text autounit">(${view_autounit(pool_info['capacity'], print_unit=True) | h})</span>
</div>
</div>
<div style="clear:both"></div>
</tr>
<tr>
<td class="info_detail_name">${_('Capacity')} (MB)</td>
- <td class="info_detail_value"><pre>${int(pool_info['capacity']) / (1024 * 1024) | h}</pre></td>
+ <td class="info_detail_value">
+ <span>${view_autounit(pool_info['capacity'], unit=('B','KB','MB')) | h}</span><span class="dark-text autounit">(${view_autounit(pool_info['capacity'], print_unit=True) | h})</span>
+ </td>
</tr>
<tr>
<td class="info_detail_name">${_('Available')} (MB)</td>
- <td class="info_detail_value"><pre>${int(pool_info['available']) / (1024 * 1024) | h}</pre></td>
+ <td class="info_detail_value">
+ <span>${view_autounit(pool_info['available'], unit=('B','KB','MB')) | h}</span><span class="dark-text autounit">(${view_autounit(pool_info['available'], print_unit=True) | h})</span>
+ </td>
</tr>
<tr>
<td class="info_detail_name">${_('Allocation')} (MB)</td>
- <td class="info_detail_value"><pre>${int(pool_info['allocation']) / (1024 * 1024) | h}</pre></td>
+ <td class="info_detail_value">
+ <span>${view_autounit(pool_info['allocation'], unit=('B','KB','MB')) | h}</span><span class="dark-text autounit">(${view_autounit(pool_info['allocation'], print_unit=True) | h})</span>
+ </td>
</tr>
</tbody>
</table>
<th>
<span class="summary-info-title">${_('Notebook')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
<th>
<span class="summary-info-title">${_('Audit')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
<th>
<span class="summary-info-title">${_('Created User')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
- ${model.created_user.nickname | h}
+ <span class="summary-info-data">${model.created_user.nickname | h}</span>
</td>
</tr>
<tr>
<th>
<span class="summary-info-title">${_('Created Date')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
- ${model.created_locale(me.languages) | h}
+ <span class="summary-info-data">${model.created_locale(me.languages) | h}</span>
</td>
</tr>
<tr>
<th>
<span class="summary-info-title">${_('Modified User')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
- ${model.modified_user.nickname | h}
+ <span class="summary-info-data">${model.modified_user.nickname | h}</span>
</td>
</tr>
<tr>
<th>
<span class="summary-info-title">${_('Modified Date')}</span>
</th>
- <td width="1">
+ <td class="summary-info-space">
<img src="${ctx.homepath}/static/images/table-space.gif" alt="" />
</td>
<td>
- ${model.modified_locale(me.languages) | h}
+ <span class="summary-info-data">${model.modified_locale(me.languages) | h}</span>
</td>
</tr>
</table>