From aa88046ca4665d6fe21e2b32d025863b2dbbe2a4 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Fri, 31 Jan 2025 15:44:57 +0100 Subject: [PATCH] Added database version to system info --- localization/strings.pot | 3 --- services/ApplicationService.php | 1 + views/about.blade.php | 8 ++++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/localization/strings.pot b/localization/strings.pot index 8fc388dd..bdb68303 100644 --- a/localization/strings.pot +++ b/localization/strings.pot @@ -351,9 +351,6 @@ msgstr "" msgid "Close" msgstr "" -msgid "Released on" -msgstr "" - msgid "Added %1$s of %2$s to stock" msgstr "" diff --git a/services/ApplicationService.php b/services/ApplicationService.php index 309843f7..b5cf984e 100644 --- a/services/ApplicationService.php +++ b/services/ApplicationService.php @@ -69,6 +69,7 @@ class ApplicationService extends BaseService 'grocy_version' => $this->GetInstalledVersion(), 'php_version' => phpversion(), 'sqlite_version' => $sqliteVersion, + 'db_version' => $this->getDatabase()->migrations()->max('migration'), 'os' => php_uname('s') . ' ' . php_uname('r') . ' ' . php_uname('v') . ' ' . php_uname('m'), 'client' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'unknown' ]; diff --git a/views/about.blade.php b/views/about.blade.php index 0de8e253..b0ce1dd9 100644 --- a/views/about.blade.php +++ b/views/about.blade.php @@ -36,7 +36,7 @@ {{ $versionInfo->Version }} - {{ $__t('Released on') }} + Released on {{ $versionInfo->ReleaseDate }} @@ -48,6 +48,10 @@ SQLite Version {{ $systemInfo['sqlite_version'] }} + + Database Version + {{ $systemInfo['db_version'] }} + OS {{ $systemInfo['os'] }} @@ -78,7 +82,7 @@ data-toggle="collapse-next" href="#"> Version {{ $changelogItem['version'] }}
- {{ $__t('Released on') }} {{ $changelogItem['release_date'] }} + Released on {{ $changelogItem['release_date'] }}