mirror of https://github.com/jumpserver/jumpserver
修改硬盘不显示问题
parent
33da9fd143
commit
f6c26a201e
|
@ -292,7 +292,7 @@ def get_disk_info(disk_info):
|
|||
else:
|
||||
disk_size = ''
|
||||
except Exception:
|
||||
disk_size = ''
|
||||
disk_size = disk_info
|
||||
return disk_size
|
||||
|
||||
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
<td class="text-center">{{ asset.system_type|default_if_none:"" }}{{ asset.system_version|default_if_none:"" }}</td>
|
||||
<td class="text-center"> {{ asset.cpu|get_cpu_core|default_if_none:"" }} </td>
|
||||
<td class="text-center"> {{ asset.memory|default_if_none:"" }}{% if asset.memory %}G{% endif %}</td>
|
||||
<td class="text-center"> {{ asset.disk|get_disk_info }}{% if asset.memory %}G{% endif %}</td>
|
||||
<td class="text-center"> {{ asset.disk|get_disk_info }}{% if asset.disk %}G{% endif %}</td>
|
||||
<td class="text-center" data-editable='false'>
|
||||
<a href="{% url 'asset_edit' %}?id={{ asset.id }}" class="btn btn-xs btn-info">编辑</a>
|
||||
<a value="{{ asset.id }}" class="conn btn btn-xs btn-warning">连接</a>
|
||||
|
|
Loading…
Reference in New Issue