##// END OF EJS Templates
admin: fixed problems with generating last change in admin panels....
admin: fixed problems with generating last change in admin panels. - from now on also updated_on will refer as last commit change instead of last update of DB. Reason for that is since we have audit logs the last db update should be taken from there along the change info. Storing last commit date in the dedicated field makes it searchable, sortable and faster to read.

File last commit:

r3919:c3b98e50 default
r4000:52837660 default
Show More
settings_system_snapshot.mako
52 lines | 968 B | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / admin / settings / settings_system_snapshot.mako
<pre>
SYSTEM INFO
-----------
% for dt, dd, warn in c.data_items:
${'{:<60}'.format(dt.lower().replace(' ', '_'))}${': {}'.format(dd if dt else '')}
% if warn and warn['message']:
${'{:<60}'.format('ALERT')} ${warn['type'].upper()} ${warn['message']}
% endif
% endfor
SYSTEM SETTINGS
---------------
% for key, value in sorted(c.rhodecode_config['human_value'].items()):
% if isinstance(value, dict):
<%
conf_file = value.pop('__file__', {})
server_main = value.pop('server:main', {})
%>
[${key}]
${'{:<60}'.format('__file__')}: ${conf_file}
% for key2, value2 in sorted(server_main.items()):
${'{:<60}'.format(key2)}: ${value2}
% endfor
% for key2, value2 in sorted(value.items()):
${'{:<60}'.format(key2)}: ${value2}
% endfor
% else:
[${key}]
${value}
% endif
% endfor
PYTHON PACKAGES
---------------
% for key, value in c.py_modules['human_value']:
${'{:<60}'.format(key)}: ${value}
% endfor
</pre>