Diff -- /var/www/vhosts/3dshawn.com/site1/TEMPLATES/diff.html
Diff
/var/www/vhosts/3dshawn.com/site1/TEMPLATES/diff.html
added on local at 2026-07-10 22:19:14
Added
+45
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to 5cfd896e2a84
to 5cfd896e2a84
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> Diff</span> | |
| 3 | <h1 class="page-title">$title</h1> | |
| 4 | <p class="page-subtitle">$subtitle</p> | |
| 5 | </div> | |
| 6 | ||
| 7 | <div class="dash-grid" style="grid-template-columns:repeat(4,1fr);margin-bottom:16px"> | |
| 8 | <div class="module glow-emerald"><div class="module-head"><div class="left"><div class="module-title">Added</div></div></div><div class="module-body kpi kpi-emerald"><div class="num">+$ct_add</div><div class="lbl">lines</div></div></div> | |
| 9 | <div class="module glow-rose"><div class="module-head"><div class="left"><div class="module-title">Removed</div></div></div><div class="module-body kpi kpi-rose"><div class="num">-$ct_del</div><div class="lbl">lines</div></div></div> | |
| 10 | <div class="module glow-teal"><div class="module-head"><div class="left"><div class="module-title">Context</div></div></div><div class="module-body kpi kpi-teal"><div class="num">$ct_context</div><div class="lbl">unchanged</div></div></div> | |
| 11 | <div class="module glow-sky"><div class="module-head"><div class="left"><div class="module-title">Blobs</div></div></div><div class="module-body kpi kpi-sky"><div class="num" style="font-size:14px;letter-spacing:0"><span class="dim">from</span> $prev_sha<br><span class="dim">to</span> $curr_sha</div></div></div> | |
| 12 | </div> | |
| 13 | ||
| 14 | <div class="module glow-teal"> | |
| 15 | <div class="module-head"><div class="left"><div class="module-title">Unified diff</div><span class="module-subtitle">Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.</span></div></div> | |
| 16 | <div class="module-body tight"> | |
| 17 | [if:$has_diff] | |
| 18 | <style> | |
| 19 | .diff-tbl { width:100%; border-collapse:collapse; font-family:var(--mono); font-size:12.5px; line-height:1.5; } | |
| 20 | .diff-tbl td { padding:1px 8px; vertical-align:top; white-space:pre-wrap; word-wrap:break-word; } | |
| 21 | .diff-tbl .ln { color:var(--text-muted); text-align:right; width:44px; user-select:none; border-right:1px solid var(--border); font-size:11px; } | |
| 22 | .diff-tbl tr.op-add td.text { background:rgba(52,211,153,.10); color:#a7f3d0; } | |
| 23 | .diff-tbl tr.op-add td.ln { background:rgba(52,211,153,.05); color:var(--accent-ok); } | |
| 24 | .diff-tbl tr.op-add td.text::before { content:'+'; color:var(--accent-ok); padding-right:6px; } | |
| 25 | .diff-tbl tr.op-del td.text { background:rgba(244,63,94,.10); color:var(--accent-danger-hi); } | |
| 26 | .diff-tbl tr.op-del td.ln { background:rgba(244,63,94,.05); color:var(--accent-danger); } | |
| 27 | .diff-tbl tr.op-del td.text::before { content:'-'; color:var(--accent-danger); padding-right:6px; } | |
| 28 | .diff-tbl tr.op-ctx td { color:var(--text-dim); } | |
| 29 | .diff-tbl tr.op-ctx td.text::before { content:' '; padding-right:6px; } | |
| 30 | </style> | |
| 31 | <div style="max-height:70vh;overflow:auto"> | |
| 32 | <table class="diff-tbl"> | |
| 33 | <tbody> | |
| 34 | [loop:@lines]<tr class="op-$op"><td class="ln">$old_n</td><td class="ln">$new_n</td><td class="text">$text</td></tr>[/loop] | |
| 35 | </tbody> | |
| 36 | </table> | |
| 37 | </div> | |
| 38 | [/if] | |
| 39 | [if:!$has_diff] | |
| 40 | <div style="padding:36px 14px;text-align:center;color:var(--text-dim);font-size:13.5px"> | |
| 41 | Nothing to diff. Blob may have been auto-purged, or this is the first snapshot. | |
| 42 | </div> | |
| 43 | [/if] | |
| 44 | </div> | |
| 45 | </div> |