Show More
@@ -577,7 +577,7 b' class SettingsController(BaseController)' | |||||
577 | ), ''), |
|
577 | ), ''), | |
578 |
|
578 | |||
579 | # RhodeCode specific |
|
579 | # RhodeCode specific | |
580 |
(_('RhodeCode Version'), |
|
580 | (_('RhodeCode Version'), val('rhodecode_app')['text'], state('rhodecode_app')), | |
581 | (_('RhodeCode Server IP'), val('server')['server_ip'], state('server')), |
|
581 | (_('RhodeCode Server IP'), val('server')['server_ip'], state('server')), | |
582 | (_('RhodeCode Server ID'), val('server')['server_id'], state('server')), |
|
582 | (_('RhodeCode Server ID'), val('server')['server_id'], state('server')), | |
583 | (_('RhodeCode Configuration'), val('rhodecode_config')['path'], state('rhodecode_config')), |
|
583 | (_('RhodeCode Configuration'), val('rhodecode_config')['path'], state('rhodecode_config')), |
@@ -466,11 +466,18 b' def vcs_server():' | |||||
466 |
|
466 | |||
467 | def rhodecode_app_info(): |
|
467 | def rhodecode_app_info(): | |
468 | import rhodecode |
|
468 | import rhodecode | |
|
469 | edition = rhodecode.CONFIG.get('rhodecode.edition') | |||
|
470 | ||||
469 | value = dict( |
|
471 | value = dict( | |
470 | rhodecode_version=rhodecode.__version__, |
|
472 | rhodecode_version=rhodecode.__version__, | |
471 | rhodecode_lib_path=os.path.abspath(rhodecode.__file__) |
|
473 | rhodecode_lib_path=os.path.abspath(rhodecode.__file__), | |
|
474 | text='' | |||
472 | ) |
|
475 | ) | |
473 | return SysInfoRes(value=value) |
|
476 | human_value = value.copy() | |
|
477 | human_value['text'] = 'RhodeCode {edition}, version {ver}'.format( | |||
|
478 | edition=edition, ver=value['rhodecode_version'] | |||
|
479 | ) | |||
|
480 | return SysInfoRes(value=value, human_value=human_value) | |||
474 |
|
481 | |||
475 |
|
482 | |||
476 | def rhodecode_config(): |
|
483 | def rhodecode_config(): |
General Comments 0
You need to be logged in to leave comments.
Login now