settings_system.html
57 lines
| 1.7 KiB
| text/html
|
HtmlLexer
r1 | ||||
<div id="update_notice" style="display: none; margin: -40px 0px 20px 0px"> | ||||
<div>${_('Checking for updates...')}</div> | ||||
</div> | ||||
<div class="panel panel-default"> | ||||
<div class="panel-heading"> | ||||
<h3 class="panel-title">${_('System Info')}</h3> | ||||
r280 | % if c.allowed_to_snapshot: | |||
r1111 | <a href="${url('admin_settings_system', snapshot=1)}" class="panel-edit">${_('create summary snapshot')}</a> | |||
r280 | % endif | |||
r1 | </div> | |||
<div class="panel-body"> | ||||
<dl class="dl-horizontal settings"> | ||||
r1111 | % for dt, dd, warn in c.data_items: | |||
<dt>${dt}${':' if dt else '---'}</dt> | ||||
<dd>${dd}${'' if dt else '---'} | ||||
% if warn and warn['message']: | ||||
<div class="alert-${warn['type']}"> | ||||
<strong>${warn['message']}</strong> | ||||
</div> | ||||
% endif | ||||
</dd> | ||||
% endfor | ||||
r1 | </dl> | |||
</div> | ||||
</div> | ||||
<div class="panel panel-default"> | ||||
<div class="panel-heading"> | ||||
<h3 class="panel-title">${_('Python Packages')}</h3> | ||||
</div> | ||||
<div class="panel-body"> | ||||
<table class="table"> | ||||
<colgroup> | ||||
<col class='label'> | ||||
<col class='content'> | ||||
</colgroup> | ||||
<tbody> | ||||
r1111 | % for key, value in c.py_modules['human_value']: | |||
r1 | <tr> | |||
r280 | <td>${key}</td> | |||
r1 | <td>${value}</td> | |||
</tr> | ||||
r1111 | % endfor | |||
r1 | </tbody> | |||
</table> | ||||
</div> | ||||
</div> | ||||
<script> | ||||
$('#check_for_update').click(function(e){ | ||||
$('#update_notice').show(); | ||||
r349 | $('#update_notice').load("${h.url('admin_settings_system_update',version=c.rhodecode_version, platform=c.platform)}"); | |||
r1 | }) | |||
</script> | ||||