Show database statstics on the info page.
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
<div class="top-bar-right">
|
||||
<ul class="menu">
|
||||
<li>
|
||||
<a href="/releaseinfo">{{ version.Local.Tag }}
|
||||
<a href="/info">{{ version.Local.Tag }}
|
||||
{{ if version.UpgradeAvailable }}
|
||||
❗
|
||||
{{ end }}
|
||||
@@ -63,8 +63,8 @@
|
||||
{{ template "config.html" . }}
|
||||
{{ else if eq .page "edit" }}
|
||||
{{ template "edit.html" . }}
|
||||
{{ else if eq .page "releaseinfo" }}
|
||||
{{ template "release_info.html" . }}
|
||||
{{ else if eq .page "info" }}
|
||||
{{ template "info.html" . }}
|
||||
{{ end }}
|
||||
{{/* template "foundation_sample.html" . */}}
|
||||
</div>
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user