Show the python version used for the pgAdmin server in the about dialog. #8249

pull/8313/head
Rohit Bhati 2025-01-01 10:28:58 +05:30 committed by GitHub
parent 19c8fcd775
commit 700ecaef4a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 0 deletions

View File

@ -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 = ""

View File

@ -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>