Show database file size on info page

This commit is contained in:
2022-08-21 13:24:52 +09:30
parent a03baca498
commit f98df478bb
7 changed files with 25 additions and 10 deletions

View File

@@ -1,12 +1,16 @@
<div class="grid-x grid-padding-x">
<div class="large-12 cell">
<div class="large-6 medium-12 cell">
<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>
<tr><th>Database disk size</th><td>{{ niceSizeMB .stats.FileSize }}Mb</td></tr>
</table>
</div>
<div class="large-6 medium-12 cell">
<h5>Release info</h5>
{{ if not version.Remote.Valid }}