This commit is contained in:
2026-02-26 18:52:42 +01:00
parent 89f4f855c8
commit 11e8160cf9
11 changed files with 505 additions and 112 deletions

View File

@@ -3,7 +3,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GhostShare | Admin</title>
<title>Admin</title>
<script src="https://cdn.tailwindcss.com"></script>
<style>
* { border-radius: 0 !important; }
@@ -27,6 +27,7 @@
<header class="mb-8 border-b-4 border-black pb-2 flex justify-between items-end">
<h1 class="text-3xl font-black uppercase tracking-tighter">System Console</h1>
<a href="/" class="nav-link text-xs">← BACK TO UPLOADER</a>
<a href="/logout" class="nav-link text-xs">LOGOUT</a>
</header>
<div class="box overflow-x-auto">
@@ -44,7 +45,7 @@
<tbody>
{{range .Files}}
<tr>
<td class="font-mono">{{.Filename}}</td>
<td class="font-mono"><a href="/admin/download/{{.ID}}" target="_blank">{{.Filename}}</a></td>
<td>{{.CreatedAt.Format "Jan 02, 15:04"}}</td>
<td>{{.ExpiresAt.Format "Jan 02, 15:04"}}</td>
<td>{{.DownloadCount}} {{if .DeleteAfterDownload}}(1-SHOT){{end}}</td>
@@ -61,7 +62,6 @@
<button type="submit">TERMINATE</button>
</form>
{{else}}
-
{{end}}
</td>
</tr>
@@ -71,7 +71,7 @@
</div>
<footer class="mt-4 text-[10px] text-gray-500 uppercase font-bold">
Total Records: {{len .Files}} | Database: SQLite
Total Records: {{len .Files}}
</footer>
</div>