mirror of https://github.com/jumpserver/jumpserver
fix disk detail bug
parent
d7cb549eac
commit
0262d94dd3
|
@ -13,7 +13,7 @@ password = mysql234
|
||||||
database = jumpserver
|
database = jumpserver
|
||||||
|
|
||||||
[websocket]
|
[websocket]
|
||||||
web_socket_host = j:3000
|
web_socket_host = js:3000
|
||||||
|
|
||||||
[mail]
|
[mail]
|
||||||
mail_enable = 1
|
mail_enable = 1
|
||||||
|
|
|
@ -209,7 +209,11 @@ def str_to_dic(info):
|
||||||
"""
|
"""
|
||||||
str to list
|
str to list
|
||||||
"""
|
"""
|
||||||
return ast.literal_eval(info).iteritems()
|
if '{' in info:
|
||||||
|
info_dic = ast.literal_eval(info).iteritems()
|
||||||
|
else:
|
||||||
|
info_dic = {}
|
||||||
|
return info_dic
|
||||||
|
|
||||||
|
|
||||||
@register.filter(name='str_to_code')
|
@register.filter(name='str_to_code')
|
||||||
|
|
|
@ -96,15 +96,15 @@
|
||||||
<div class="hr-line-dashed"></div>
|
<div class="hr-line-dashed"></div>
|
||||||
{{ af.memory|bootstrap_horizontal }}
|
{{ af.memory|bootstrap_horizontal }}
|
||||||
|
|
||||||
|
<div class="hr-line-dashed"></div>
|
||||||
|
{{ af.disk|bootstrap_horizontal }}
|
||||||
|
|
||||||
<div class="hr-line-dashed"></div>
|
<div class="hr-line-dashed"></div>
|
||||||
{{ af.system_type|bootstrap_horizontal }}
|
{{ af.system_type|bootstrap_horizontal }}
|
||||||
|
|
||||||
<div class="hr-line-dashed"></div>
|
<div class="hr-line-dashed"></div>
|
||||||
{{ af.system_version|bootstrap_horizontal }}
|
{{ af.system_version|bootstrap_horizontal }}
|
||||||
|
|
||||||
<div class="hr-line-dashed"></div>
|
|
||||||
{{ af.disk|bootstrap_horizontal }}
|
|
||||||
|
|
||||||
<div class="hr-line-dashed"></div>
|
<div class="hr-line-dashed"></div>
|
||||||
{{ af.number|bootstrap_horizontal }}
|
{{ af.number|bootstrap_horizontal }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue