##// END OF EJS Templates
fix(permissions): added a common way to update private flag via repo model...
fix(permissions): added a common way to update private flag via repo model - this allows to have a one and only one way to control the flag with the business logic shared - added test for that - changed view to use this method instead of DB update and custom permissions flush - fixed a case when update of repo settings didn't flush permissions actually while it should when private flag changed

File last commit:

r4348:a10871a5 default
r5551:5b9b5ed2 default
Show More
settings_system_snapshot.mako
52 lines | 1.0 KiB | 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 name, package_data in c.py_modules['human_value']:
${'{:<60}'.format(name)}: ${'{:<20}'.format(package_data['version'])} (${package_data['location']})
% endfor
</pre>