Implement control panel

This commit is contained in:
Pijus Kamandulis
2025-07-04 21:23:21 +03:00
parent ef247fc843
commit effe887b3b
3 changed files with 64 additions and 0 deletions

24
templates/cp.html Normal file
View File

@@ -0,0 +1,24 @@
{{ define "title" }}Control Panel{{ end }} {{ define "header" }}⚙️ Control
Panel{{ end }} {{ define "content" }}
<div>
{{ if .Message }}
<strong>Info:</strong> {{ .Message }} {{ end }}
<table>
<thead>
<tr>
<th>Action</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="/cp?action=ClearDailyStats">Clear Daily Stats</a></td>
<td>Clear Daily Stats cache</td>
</tr>
</tbody>
</table>
</div>
{{ end }} {{ template "layout" . }}