Show More
@@ -1,89 +1,89 b'' | |||||
1 | <% |
|
1 | <% | |
2 | elems = [ |
|
2 | elems = [ | |
3 | ## general |
|
3 | ## general | |
4 | (_('RhodeCode Enterprise version'), h.literal('%s <div class="link" id="check_for_update" >%s</div>' % (c.rhodecode_version, _('check for updates'))), ''), |
|
4 | (_('RhodeCode Enterprise version'), h.literal('%s <div class="link" id="check_for_update" >%s</div>' % (c.rhodecode_version, _('check for updates'))), ''), | |
5 | (_('Upgrade info endpoint'), h.literal('%s <br/><span >%s.</span>' % (c.rhodecode_update_url, _('Note: please make sure this server can access this url'))), ''), |
|
5 | (_('Upgrade info endpoint'), h.literal('%s <br/><span >%s.</span>' % (c.rhodecode_update_url, _('Note: please make sure this server can access this url'))), ''), | |
6 | (_('Configuration INI file'), c.rhodecode_config_ini, ''), |
|
6 | (_('Configuration INI file'), c.rhodecode_config_ini, ''), | |
7 | ## systems stats |
|
7 | ## systems stats | |
8 | (_('RhodeCode Enterprise Server IP'), c.server_ip, ''), |
|
8 | (_('RhodeCode Enterprise Server IP'), c.server_ip, ''), | |
9 | (_('RhodeCode Enterprise Server ID'), c.server_id, ''), |
|
9 | (_('RhodeCode Enterprise Server ID'), c.server_id, ''), | |
10 | (_('Platform'), c.platform, ''), |
|
10 | (_('Platform'), c.platform, ''), | |
11 | (_('Uptime'), c.uptime_age, ''), |
|
11 | (_('Uptime'), c.uptime_age, ''), | |
12 | (_('Storage location'), c.storage, ''), |
|
12 | (_('Storage location'), c.storage, ''), | |
13 | (_('Storage disk space'), "%s/%s, %s%% used%s" % (h.format_byte_size_binary(c.disk['used']), h.format_byte_size_binary(c.disk['total']),(c.disk['percent']), ' %s' % c.disk['error'] if 'error' in c.disk else ''), ''), |
|
13 | (_('Storage disk space'), "%s/%s, %s%% used%s" % (h.format_byte_size_binary(c.disk['used']), h.format_byte_size_binary(c.disk['total']),(c.disk['percent']), ' %s' % c.disk['error'] if 'error' in c.disk else ''), ''), | |
14 |
|
14 | |||
15 | (_('Search index storage'), c.index_storage, ''), |
|
15 | (_('Search index storage'), c.index_storage, ''), | |
16 | (_('Search index size'), "%s %s" % (h.format_byte_size_binary(c.disk_index['used']), ' %s' % c.disk_index['error'] if 'error' in c.disk_index else ''), ''), |
|
16 | (_('Search index size'), "%s %s" % (h.format_byte_size_binary(c.disk_index['used']), ' %s' % c.disk_index['error'] if 'error' in c.disk_index else ''), ''), | |
17 |
|
17 | |||
18 | (_('Gist storage'), c.gist_storage, ''), |
|
18 | (_('Gist storage'), c.gist_storage, ''), | |
19 | (_('Gist storage size'), "%s (%s items)%s" % (h.format_byte_size_binary(c.disk_gist['used']),c.disk_gist['items'], ' %s' % c.disk_gist['error'] if 'error' in c.disk_gist else ''), ''), |
|
19 | (_('Gist storage size'), "%s (%s items)%s" % (h.format_byte_size_binary(c.disk_gist['used']),c.disk_gist['items'], ' %s' % c.disk_gist['error'] if 'error' in c.disk_gist else ''), ''), | |
20 |
|
20 | |||
21 | (_('Archive cache'), h.literal('%s <br/><span >%s.</span>' % (c.archive_storage, _('Enable this by setting archive_cache_dir=/path/to/cache option in the .ini file'))), ''), |
|
21 | (_('Archive cache'), h.literal('%s <br/><span >%s.</span>' % (c.archive_storage, _('Enable this by setting archive_cache_dir=/path/to/cache option in the .ini file'))), ''), | |
22 | (_('Archive cache size'), "%s%s" % (h.format_byte_size_binary(c.disk_archive['used']), ' %s' % c.disk_archive['error'] if 'error' in c.disk_archive else ''), ''), |
|
22 | (_('Archive cache size'), "%s%s" % (h.format_byte_size_binary(c.disk_archive['used']), ' %s' % c.disk_archive['error'] if 'error' in c.disk_archive else ''), ''), | |
23 |
|
23 | |||
24 | (_('System memory'), c.system_memory, ''), |
|
24 | (_('System memory'), c.system_memory, ''), | |
25 | (_('CPU'), '%s %%' %(c.cpu), ''), |
|
25 | (_('CPU'), '%s %%' %(c.cpu), ''), | |
26 | (_('Load'), '1min: %s, 5min: %s, 15min: %s' %(c.load['1_min'],c.load['5_min'],c.load['15_min']), ''), |
|
26 | (_('Load'), '1min: %s, 5min: %s, 15min: %s' %(c.load['1_min'],c.load['5_min'],c.load['15_min']), ''), | |
27 |
|
27 | |||
28 | ## rhodecode stuff |
|
28 | ## rhodecode stuff | |
29 | (_('Python version'), c.py_version, ''), |
|
29 | (_('Python version'), c.py_version, ''), | |
30 | (_('Python path'), c.py_path, ''), |
|
30 | (_('Python path'), c.py_path, ''), | |
31 | (_('GIT version'), c.git_version, ''), |
|
31 | (_('GIT version'), c.git_version, ''), | |
32 | (_('HG version'), c.hg_version, ''), |
|
32 | (_('HG version'), c.hg_version, ''), | |
33 | (_('SVN version'), c.svn_version, ''), |
|
33 | (_('SVN version'), c.svn_version, ''), | |
34 | (_('Database'), "%s @ version: %s" % (c.db_type, c.db_migrate_version), ''), |
|
34 | (_('Database'), "%s @ version: %s" % (c.db_type, c.db_migrate_version), ''), | |
35 | (_('Database version'), c.db_version, ''), |
|
35 | (_('Database version'), c.db_version, ''), | |
36 |
|
36 | |||
37 | ] |
|
37 | ] | |
38 | %> |
|
38 | %> | |
39 |
|
39 | |||
40 | <div id="update_notice" style="display: none; margin: -40px 0px 20px 0px"> |
|
40 | <div id="update_notice" style="display: none; margin: -40px 0px 20px 0px"> | |
41 | <div>${_('Checking for updates...')}</div> |
|
41 | <div>${_('Checking for updates...')}</div> | |
42 | </div> |
|
42 | </div> | |
43 |
|
43 | |||
44 |
|
44 | |||
45 | <div class="panel panel-default"> |
|
45 | <div class="panel panel-default"> | |
46 | <div class="panel-heading"> |
|
46 | <div class="panel-heading"> | |
47 | <h3 class="panel-title">${_('System Info')}</h3> |
|
47 | <h3 class="panel-title">${_('System Info')}</h3> | |
48 | % if c.allowed_to_snapshot: |
|
48 | % if c.allowed_to_snapshot: | |
49 | <a href="${url('admin_settings_system', snapshot=1)}" class="panel-edit">${_('create snapshot')}</a> |
|
49 | <a href="${url('admin_settings_system', snapshot=1)}" class="panel-edit">${_('create snapshot')}</a> | |
50 | % endif |
|
50 | % endif | |
51 | </div> |
|
51 | </div> | |
52 | <div class="panel-body"> |
|
52 | <div class="panel-body"> | |
53 | <dl class="dl-horizontal settings"> |
|
53 | <dl class="dl-horizontal settings"> | |
54 | %for dt, dd, tt in elems: |
|
54 | %for dt, dd, tt in elems: | |
55 | <dt>${dt}:</dt> |
|
55 | <dt>${dt}:</dt> | |
56 | <dd title="${tt}">${dd}</dd> |
|
56 | <dd title="${tt}">${dd}</dd> | |
57 | %endfor |
|
57 | %endfor | |
58 | </dl> |
|
58 | </dl> | |
59 | </div> |
|
59 | </div> | |
60 | </div> |
|
60 | </div> | |
61 |
|
61 | |||
62 | <div class="panel panel-default"> |
|
62 | <div class="panel panel-default"> | |
63 | <div class="panel-heading"> |
|
63 | <div class="panel-heading"> | |
64 | <h3 class="panel-title">${_('Python Packages')}</h3> |
|
64 | <h3 class="panel-title">${_('Python Packages')}</h3> | |
65 | </div> |
|
65 | </div> | |
66 | <div class="panel-body"> |
|
66 | <div class="panel-body"> | |
67 | <table class="table"> |
|
67 | <table class="table"> | |
68 | <colgroup> |
|
68 | <colgroup> | |
69 | <col class='label'> |
|
69 | <col class='label'> | |
70 | <col class='content'> |
|
70 | <col class='content'> | |
71 | </colgroup> |
|
71 | </colgroup> | |
72 | <tbody> |
|
72 | <tbody> | |
73 | %for key, value in c.py_modules: |
|
73 | %for key, value in c.py_modules: | |
74 | <tr> |
|
74 | <tr> | |
75 | <td>${key}</td> |
|
75 | <td>${key}</td> | |
76 | <td>${value}</td> |
|
76 | <td>${value}</td> | |
77 | </tr> |
|
77 | </tr> | |
78 | %endfor |
|
78 | %endfor | |
79 | </tbody> |
|
79 | </tbody> | |
80 | </table> |
|
80 | </table> | |
81 | </div> |
|
81 | </div> | |
82 | </div> |
|
82 | </div> | |
83 |
|
83 | |||
84 | <script> |
|
84 | <script> | |
85 | $('#check_for_update').click(function(e){ |
|
85 | $('#check_for_update').click(function(e){ | |
86 | $('#update_notice').show(); |
|
86 | $('#update_notice').show(); | |
87 | $('#update_notice').load("${h.url('admin_settings_system_update')}"); |
|
87 | $('#update_notice').load("${h.url('admin_settings_system_update',version=c.rhodecode_version, platform=c.platform)}"); | |
88 | }) |
|
88 | }) | |
89 | </script> |
|
89 | </script> |
General Comments 0
You need to be logged in to leave comments.
Login now