Skip to content

Commit

Permalink
Show the python version used for the pgAdmin server in the about dial…
Browse files Browse the repository at this point in the history
…og. #8249
  • Loading branch information
RohitBhati8269 authored Jan 1, 2025
1 parent 19c8fcd commit 700ecae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions web/pgadmin/about/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from user_agents import parse
import platform
import re
import sys

MODULE_NAME = 'about'

Expand Down Expand Up @@ -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 = ""
Expand Down
8 changes: 8 additions & 0 deletions web/pgadmin/about/static/js/AboutComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 700ecae

Please sign in to comment.