Diff -- /var/www/vhosts/3dshawn.com/site1/TEMPLATES/purge_log.html

O Operator
Diff

/var/www/vhosts/3dshawn.com/site1/TEMPLATES/purge_log.html

added on local at 2026-07-12 00:19:32

Added
+74
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to bd683476aa21
Restore this content →
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.
1<div class="page-head">
2 <span class="page-eyebrow"><span class="dot"></span> Reclaim</span>
3 <h1 class="page-title">Purge log</h1>
4 <p class="page-subtitle">Auto-purge audit trail. Dry-run entries show what live mode would reclaim; live entries show what was actually removed from BLOB_STORE. Toggle the mode filter to compare.</p>
5</div>
6
7<div class="dash-grid" style="grid-template-columns:1fr 1fr;margin-bottom:16px">
8 <div class="module glow-sky">
9 <div class="module-head"><div class="left">
10 <div class="module-title">Dry-run plan</div>
11 <span class="module-subtitle">What live mode would have reclaimed in the last $days days.</span>
12 </div></div>
13 <div class="module-body kpi kpi-sky">
14 <div class="num">$dry_ct</div>
15 <div class="lbl">blobs planned</div>
16 <div class="sub"><strong>$dry_bytes_h</strong> would be freed</div>
17 </div>
18 </div>
19 <div class="module glow-warn">
20 <div class="module-head"><div class="left">
21 <div class="module-title">Live purges</div>
22 <span class="module-subtitle">What was actually removed in the last $days days.</span>
23 </div></div>
24 <div class="module-body kpi kpi-amber">
25 <div class="num">$live_ct</div>
26 <div class="lbl">blobs deleted</div>
27 <div class="sub"><strong>$live_bytes_h</strong> reclaimed</div>
28 </div>
29 </div>
30</div>
31
32<div style="display:flex;gap:6px;margin-bottom:14px;flex-wrap:wrap;align-items:center">
33 <span class="rb-label" style="margin-right:6px">Mode</span>
34 <a class="tr-chip $all_sel" href="?mode=all&days=$days">All</a>
35 <a class="tr-chip $dry_sel" href="?mode=dry_run&days=$days">Dry-run only</a>
36 <a class="tr-chip $live_sel" href="?mode=live&days=$days">Live only</a>
37 <span style="margin-left:auto;color:var(--text-muted);font-size:11.5px">Showing last 300 entries within $days days</span>
38</div>
39
40<div class="module glow-teal">
41 <div class="module-head"><div class="left">
42 <div class="module-title">Entries &mdash; $total shown</div>
43 <span class="module-subtitle">Newest first.</span>
44 </div></div>
45 <div class="module-body tight">
46 [if:$has_rows]
47 <table class="tbl">
48 <thead><tr>
49 <th style="width:100px">Mode</th>
50 <th style="width:140px">Blob SHA</th>
51 <th style="width:90px">Size</th>
52 <th>Reason</th>
53 <th style="width:170px">When</th>
54 </tr></thead>
55 <tbody>
56 [loop:@rows]
57 <tr>
58 <td><span class="pill $mode_pill">$mode_label</span></td>
59 <td class="mono">$sha_short</td>
60 <td class="mono">$size_h</td>
61 <td class="dim" style="font-size:12px">$reason</td>
62 <td class="mono dim"><span class="ts" data-ts="$purged_epoch" data-fmt="relative">$purged_h</span></td>
63 </tr>
64 [/loop]
65 </tbody>
66 </table>
67 [/if]
68 [if:!$has_rows]
69 <div style="padding:36px 14px;text-align:center;color:var(--text-dim);font-size:13.5px">
70 No purge entries in the last $days days. Auto-purge is safe to leave enabled &mdash; it runs daily at 03:15 and does nothing until content ages past the retention window.
71 </div>
72 [/if]
73 </div>
74</div>