mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Added database version to system info
This commit is contained in:
parent
a35db9f1d3
commit
aa88046ca4
@ -351,9 +351,6 @@ msgstr ""
|
|||||||
msgid "Close"
|
msgid "Close"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
msgid "Released on"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
msgid "Added %1$s of %2$s to stock"
|
msgid "Added %1$s of %2$s to stock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -69,6 +69,7 @@ class ApplicationService extends BaseService
|
|||||||
'grocy_version' => $this->GetInstalledVersion(),
|
'grocy_version' => $this->GetInstalledVersion(),
|
||||||
'php_version' => phpversion(),
|
'php_version' => phpversion(),
|
||||||
'sqlite_version' => $sqliteVersion,
|
'sqlite_version' => $sqliteVersion,
|
||||||
|
'db_version' => $this->getDatabase()->migrations()->max('migration'),
|
||||||
'os' => php_uname('s') . ' ' . php_uname('r') . ' ' . php_uname('v') . ' ' . php_uname('m'),
|
'os' => php_uname('s') . ' ' . php_uname('r') . ' ' . php_uname('v') . ' ' . php_uname('m'),
|
||||||
'client' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'unknown'
|
'client' => isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : 'unknown'
|
||||||
];
|
];
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
<td><code>{{ $versionInfo->Version }}</code></td>
|
<td><code>{{ $versionInfo->Version }}</code></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-right">{{ $__t('Released on') }}</td>
|
<td class="text-right">Released on</td>
|
||||||
<td><code>{{ $versionInfo->ReleaseDate }}</code> <time class="timeago timeago-contextual text-muted"
|
<td><code>{{ $versionInfo->ReleaseDate }}</code> <time class="timeago timeago-contextual text-muted"
|
||||||
datetime="{{ $versionInfo->ReleaseDate }}"></time></td>
|
datetime="{{ $versionInfo->ReleaseDate }}"></time></td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -48,6 +48,10 @@
|
|||||||
<td class="text-right">SQLite Version</td>
|
<td class="text-right">SQLite Version</td>
|
||||||
<td><code>{{ $systemInfo['sqlite_version'] }}</code></td>
|
<td><code>{{ $systemInfo['sqlite_version'] }}</code></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="text-right">Database Version</td>
|
||||||
|
<td><code>{{ $systemInfo['db_version'] }}</code></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="text-right">OS</td>
|
<td class="text-right">OS</td>
|
||||||
<td><code>{{ $systemInfo['os'] }}</code></td>
|
<td><code>{{ $systemInfo['os'] }}</code></td>
|
||||||
@ -78,7 +82,7 @@
|
|||||||
data-toggle="collapse-next"
|
data-toggle="collapse-next"
|
||||||
href="#">
|
href="#">
|
||||||
Version <span class="font-weight-bold">{{ $changelogItem['version'] }}</span><br>
|
Version <span class="font-weight-bold">{{ $changelogItem['version'] }}</span><br>
|
||||||
{{ $__t('Released on') }} <span class="font-weight-bold">{{ $changelogItem['release_date'] }}</span>
|
Released on <span class="font-weight-bold">{{ $changelogItem['release_date'] }}</span>
|
||||||
<time class="timeago timeago-contextual text-muted"
|
<time class="timeago timeago-contextual text-muted"
|
||||||
datetime="{{ $changelogItem['release_date'] }}"></time>
|
datetime="{{ $changelogItem['release_date'] }}"></time>
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user