Show database statstics on the info page.

This commit is contained in:
2022-08-21 09:38:44 +09:30
parent 6f93f2ff50
commit db72e8fb7d
5 changed files with 37 additions and 7 deletions

View File

@@ -1,8 +1,12 @@
<div class="grid-x grid-padding-x">
<div class="large-12 cell">
<h5>Memory Usage</h5>
<p>{{ meminfo }}</p>
<h5>System information</h5>
<table>
<tr><th>Memory in use</th><td>{{ meminfo }}</td></tr>
<tr><th>Bookmarks</th><td>{{ .stats.MostRecentBookmarkInfo.Bookmarks }}</td></tr>
<tr><th>Words Indexed</th><td>{{ .stats.MostRecentBookmarkInfo.IndexedWords }}</td></tr>
</table>
<h5>Release info</h5>
{{ if not version.Remote.Valid }}