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