add full scan button web ui

This commit is contained in:
sentriz
2020-04-25 03:07:41 +01:00
parent f52ce807af
commit 56a39126ec
5 changed files with 176 additions and 151 deletions

View File

@@ -106,8 +106,11 @@
{{- if not .LastScanTime.IsZero -}}
<p class="text-light" title="{{ .LastScanTime }}">scanned {{ .LastScanTime | dateHuman }}</p>
{{ end }}
<form action="{{ path "/admin/start_scan_do" }}" method="post">
<td><input type="submit" value="start scan"></td>
<form action="{{ path "/admin/start_scan_inc_do" }}" method="post">
<input type="submit" title="start a incremental scan" value="scan now"><br/>
</form>
<form action="{{ path "/admin/start_scan_full_do" }}" method="post">
<input type="submit" title="start a full scan (takes longer, and shouldn&#39;t usually be necessary)" value="scan full (!)">
</form>
{{ end }}
</div>