##// END OF EJS Templates
system-snapshot: nicer formatting == reads easier
ergo -
r3891:e238027c default
parent child Browse files
Show More
@@ -4,7 +4,7 b' SYSTEM INFO'
4 4 -----------
5 5
6 6 % for dt, dd, warn in c.data_items:
7 ${dt.lower().replace(' ', '_')}${': '+dd if dt else '---'}
7 ${'{:<60}'.format(dt.lower().replace(' ', '_'))}${': '+dd if dt else ''}
8 8 % if warn and warn['message']:
9 9 ALERT_${warn['type'].upper()} ${warn['message']}
10 10 % endif
@@ -14,22 +14,29 b' PYTHON PACKAGES'
14 14 ---------------
15 15
16 16 % for key, value in c.py_modules['human_value']:
17 ${key}: ${value}
17 ${'{:<60}'.format(key)}: ${value}
18 18 % endfor
19 19
20 20 SYSTEM SETTINGS
21 21 ---------------
22 22
23 23 % for key, value in sorted(c.rhodecode_config['human_value'].items()):
24 [${key}]
24 25 % if isinstance(value, dict):
26 <% server_main = value.pop('server:main', {}) %>
25 27
26 % for key2, value2 in value.items():
27 [${key}]${key2}: ${value2}
28 % for key2, value2 in sorted(server_main.items()):
29 ${'{:<60}'.format('server:main')}: ${value2}
30 % endfor
31
32 % for key2, value2 in sorted(value.items()):
33 ${'{:<60}'.format(key2)}: ${value2}
28 34 % endfor
29 35
30 36 % else:
31 ${key}: ${value}
37 ${value}
32 38 % endif
39
33 40 % endfor
34 41
35 42 </pre>
General Comments 0
You need to be logged in to leave comments. Login now