Diff -- /var/www/vhosts/3dshawn.com/site1/TEMPLATES/file_changes.html
Diff
/var/www/vhosts/3dshawn.com/site1/TEMPLATES/file_changes.html
modified on local at 2026-07-11 23:34:34
Added
+2
lines
Removed
-0
lines
Context
54
unchanged
Blobs
from 62734ebeac8d
to 126e96514828
to 126e96514828
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.| 1 | 1 | <div class="page-head"> |
| 2 | 2 | <span class="page-eyebrow"><span class="dot"></span> Monitor</span> |
| 3 | 3 | <h1 class="page-title">File changes</h1> |
| 4 | 4 | <p class="page-subtitle">Every file change captured on every watched path. Click a row to view the full diff and restore point.</p> |
| 5 | 5 | </div> |
| 6 | 6 | |
| 7 | 7 | $picker_html |
| 8 | 8 | |
| 9 | 9 | <form method="get" action="/file_changes.cgi" style="display:flex;gap:8px;align-items:center;margin-bottom:16px"> |
| 10 | 10 | <input type="hidden" name="days" value="7"> |
| 11 | 11 | <span class="rb-label" style="font-size:11px;letter-spacing:1.4px;text-transform:uppercase;color:var(--text-muted);font-weight:700">Path filter</span> |
| 12 | 12 | <input type="text" name="q" value="$q" placeholder="e.g. /etc/nginx or file.conf" style="flex:1;background:var(--bg-2);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:6px 12px;font-size:12.5px;font-family:inherit"> |
| 13 | 13 | <button type="submit" class="tr-chip is-active" style="border:none">Apply</button> |
| 14 | 14 | [if:$q]<a class="tr-chip" href="/file_changes.cgi">Clear</a>[/if] |
| 15 | 15 | </form> |
| 16 | 16 | |
| 17 | 17 | <div class="module glow-teal"> |
| 18 | 18 | <div class="module-head"><div class="left"> |
| 19 | 19 | <div class="module-icon"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg></div> |
| 20 | 20 | <div class="module-title">Changes captured</div> |
| 21 | 21 | <span class="module-subtitle">Content dedup via SHA-256 in BLOB_STORE. Timestamp-only changes marked so you can filter noise. $total match this window.</span> |
| 22 | 22 | </div></div> |
| 23 | 23 | <div class="module-body tight"> |
| 24 | 24 | [if:$has_rows] |
| 25 | 25 | <table class="tbl"> |
| 26 | 26 | <thead><tr> |
| 27 | 27 | <th style="width:100px">Status</th> |
| 28 | 28 | <th>File</th> |
| 29 | 29 | <th style="width:110px">30-day rhythm</th> |
| 30 | 30 | <th style="width:110px">Server</th> |
| 31 | 31 | <th style="width:90px">Blob</th> |
| 32 | 32 | <th style="width:180px">When</th> |
| 33 | <th style="width:80px">Restore</th> | |
| 33 | 34 | </tr></thead> |
| 34 | 35 | <tbody> |
| 35 | 36 | [loop:@rows] |
| 36 | 37 | <tr> |
| 37 | 38 | <td><span class="pill $status_pill">$status</span>[if:$is_ts_only] <span class="pill pill-mute" style="font-size:9px">ts</span>[/if]</td> |
| 38 | 39 | <td class="mono" style="font-size:12px"><a href="$diff_url" style="color:var(--accent-hi);text-decoration:none">$file_name_h</a></td> |
| 39 | 40 | <td>$sparkline_svg</td> |
| 40 | 41 | <td class="dim">$server_name</td> |
| 41 | 42 | <td class="mono dim"><a href="$diff_url" style="color:var(--accent-hi);text-decoration:none">$blob_short</a></td> |
| 42 | 43 | <td class="mono dim"><span class="ts" data-ts="$ts_epoch" data-fmt="datetime">$date_time</span></td> |
| 44 | <td>[if:$can_restore]<a href="$restore_url" class="tr-chip" style="padding:3px 10px;font-size:11px">Restore</a>[/if]</td> | |
| 43 | 45 | </tr> |
| 44 | 46 | [/loop] |
| 45 | 47 | </tbody> |
| 46 | 48 | </table> |
| 47 | 49 | [/if] |
| 48 | 50 | [if:!$has_rows] |
| 49 | 51 | <div style="padding:36px 14px;text-align:center;color:var(--text-dim);font-size:13.5px"> |
| 50 | 52 | No file changes captured in this window. Try widening the range with the chips above, or configure a file monitor in <a href="[url:file_monitors]" style="color:var(--accent-hi)">File monitors</a>. |
| 51 | 53 | </div> |
| 52 | 54 | [/if] |
| 53 | 55 | </div> |
| 54 | 56 | </div> |