Show the python version used for the pgAdmin server in the about dialog. #8249
parent
19c8fcd775
commit
700ecaef4a
|
@ -22,6 +22,7 @@ from pgadmin.model import User
|
|||
from user_agents import parse
|
||||
import platform
|
||||
import re
|
||||
import sys
|
||||
|
||||
MODULE_NAME = 'about'
|
||||
|
||||
|
@ -75,6 +76,7 @@ def index():
|
|||
info['version'] = config.APP_VERSION
|
||||
info['admin'] = admin
|
||||
info['current_user'] = current_user.email
|
||||
info['python_version'] = sys.version
|
||||
|
||||
if admin:
|
||||
settings = ""
|
||||
|
|
|
@ -57,6 +57,14 @@ export default function AboutComponent() {
|
|||
<InputLabel>{aboutData.commit_hash}</InputLabel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid container spacing={0} style={{marginBottom: '8px'}}>
|
||||
<Grid item lg={3} md={3} sm={3} xs={12}>
|
||||
<InputLabel style={{fontWeight: 'bold'}}>{gettext('Python Version:')}</InputLabel>
|
||||
</Grid>
|
||||
<Grid item lg={9} md={9} sm={9} xs={12}>
|
||||
<InputLabel>{aboutData.python_version}</InputLabel>
|
||||
</Grid>
|
||||
</Grid>
|
||||
<Grid container spacing={0} style={{marginBottom: '8px'}}>
|
||||
<Grid item lg={3} md={3} sm={3} xs={12}>
|
||||
<InputLabel style={{fontWeight: 'bold'}}>{gettext('Current User')}</InputLabel>
|
||||
|
|
Loading…
Reference in New Issue