Skip to content

Commit 931d130

Browse files
author
Rohit Bhati
committed
Add python version in the about dialog. #8249
1 parent 92e531d commit 931d130

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

web/pgadmin/about/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
from user_agents import parse
2323
import platform
2424
import re
25+
import sys
2526

2627
MODULE_NAME = 'about'
2728

@@ -75,6 +76,7 @@ def index():
7576
info['version'] = config.APP_VERSION
7677
info['admin'] = admin
7778
info['current_user'] = current_user.email
79+
info['python_version'] = sys.version
7880

7981
if admin:
8082
settings = ""

web/pgadmin/about/static/js/AboutComponent.jsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,14 @@ export default function AboutComponent() {
5757
<InputLabel>{aboutData.commit_hash}</InputLabel>
5858
</Grid>
5959
</Grid>
60+
<Grid container spacing={0} style={{marginBottom: '8px'}}>
61+
<Grid item lg={3} md={3} sm={3} xs={12}>
62+
<InputLabel style={{fontWeight: 'bold'}}>{gettext('Python Version:')}</InputLabel>
63+
</Grid>
64+
<Grid item lg={9} md={9} sm={9} xs={12}>
65+
<InputLabel>{aboutData.python_version}</InputLabel>
66+
</Grid>
67+
</Grid>
6068
<Grid container spacing={0} style={{marginBottom: '8px'}}>
6169
<Grid item lg={3} md={3} sm={3} xs={12}>
6270
<InputLabel style={{fontWeight: 'bold'}}>{gettext('Current User')}</InputLabel>

0 commit comments

Comments
 (0)