Diff -- /var/www/vhosts/3dshawn.com/site1/TEMPLATES/named_releases.html
Diff
/var/www/vhosts/3dshawn.com/site1/TEMPLATES/named_releases.html
modified on local at 2026-07-11 23:34:30
Added
+43
lines
Removed
-10
lines
Context
47
unchanged
Blobs
from 6c6cb10fed88
to dd23bd2d3645
to dd23bd2d3645
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> Bookmark</span> |
| 3 | 3 | <h1 class="page-title">Named releases</h1> |
| 4 | <p class="page-subtitle">Retroactively bookmark a moment. "Before the schema refactor." "Customer verified this worked." "Before I fired the intern." Every blob referenced by a named release is protected from auto-purge, so restore-to-moment always works.</p> | |
| 4 | <p class="page-subtitle">Retroactively bookmark a moment. "Before the schema refactor." "Customer verified this worked." "Before I fired the intern." Every blob referenced by a named release is protected from auto-purge, so restore-to-moment always works — scoped portfolio-wide or to a single site.</p> | |
| 5 | 5 | </div> |
| 6 | 6 | |
| 7 | 7 | <div class="module glow-emerald" style="margin-bottom:16px"> |
| 8 | 8 | <div class="module-head"><div class="left"> |
| 9 | 9 | <div class="module-icon"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2"><path d="M20 13V7a2 2 0 0 0-2-2h-4l-2-3H6a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h5"/><path d="M14 19l2 2 4-4"/></svg></div> |
| 10 | 10 | <div class="module-title">Create a bookmark</div> |
| 11 | 11 | <span class="module-subtitle">Names the current moment. Everything captured up to now becomes restorable from this label forever.</span> |
| 12 | 12 | </div></div> |
| 13 | 13 | <div class="module-body"> |
| 14 | <form method="post" action="/named_releases.cgi" style="display:grid;grid-template-columns:1fr 2fr 160px auto;gap:12px;align-items:end"> | |
| 14 | <form method="post" action="/named_releases.cgi" style="display:flex;flex-direction:column;gap:12px"> | |
| 15 | 15 | <input type="hidden" name="save" value="1"> |
| 16 | <div><label class="dim" style="display:block;font-size:10.5px;letter-spacing:1.4px;text-transform:uppercase;font-weight:700;margin-bottom:5px">Name</label><input type="text" name="name" required placeholder="e.g. before-schema-refactor"></div> | |
| 17 | <div><label class="dim" style="display:block;font-size:10.5px;letter-spacing:1.4px;text-transform:uppercase;font-weight:700;margin-bottom:5px">Description</label><input type="text" name="description" placeholder="Optional context"></div> | |
| 18 | <div><label class="dim" style="display:block;font-size:10.5px;letter-spacing:1.4px;text-transform:uppercase;font-weight:700;margin-bottom:5px">By</label><input type="text" name="released_by" value="Operator"></div> | |
| 19 | <button type="submit" class="btn">Save bookmark</button> | |
| 16 | ||
| 17 | <div style="display:flex;gap:12px"> | |
| 18 | <label style="flex:1;display:flex;flex-direction:column;gap:4px"> | |
| 19 | <span class="rb-label">Name</span> | |
| 20 | <input type="text" name="name" required placeholder="e.g. before-schema-refactor" | |
| 21 | style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-family:var(--mono);font-size:12.5px"> | |
| 22 | </label> | |
| 23 | <label style="flex:2;display:flex;flex-direction:column;gap:4px"> | |
| 24 | <span class="rb-label">Description</span> | |
| 25 | <input type="text" name="description" placeholder="Optional context" | |
| 26 | style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:12.5px"> | |
| 27 | </label> | |
| 28 | <label style="width:160px;display:flex;flex-direction:column;gap:4px"> | |
| 29 | <span class="rb-label">By</span> | |
| 30 | <input type="text" name="released_by" value="Operator" | |
| 31 | style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:12.5px"> | |
| 32 | </label> | |
| 33 | </div> | |
| 34 | ||
| 35 | <label style="display:flex;flex-direction:column;gap:4px"> | |
| 36 | <span class="rb-label">Scope <span class="dim" style="text-transform:none;letter-spacing:0;font-size:10.5px">— leave "All monitored sites" for a portfolio-wide bookmark</span></span> | |
| 37 | <select name="scope_monitor_id" style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:12.5px"> | |
| 38 | <option value="0">All monitored sites (portfolio-wide)</option> | |
| 39 | [loop:@monitors] | |
| 40 | <option value="$mid">$label</option> | |
| 41 | [/loop] | |
| 42 | </select> | |
| 43 | </label> | |
| 44 | ||
| 45 | <div style="display:flex;justify-content:flex-end"> | |
| 46 | <button type="submit" class="tr-chip is-active" style="border:none;padding:8px 18px">Save bookmark</button> | |
| 47 | </div> | |
| 20 | 48 | </form> |
| 21 | 49 | </div> |
| 22 | 50 | </div> |
| 23 | 51 | |
| 24 | 52 | <div class="module glow-teal"> |
| 25 | 53 | <div class="module-head"><div class="left"> |
| 26 | 54 | <div class="module-icon"><svg viewBox="0 0 24 24" width="14" height="14" fill="none" stroke="currentColor" stroke-width="2"><line x1="4" y1="9" x2="20" y2="9"/><line x1="4" y1="15" x2="20" y2="15"/><line x1="10" y1="3" x2="8" y2="21"/><line x1="16" y1="3" x2="14" y2="21"/></svg></div> |
| 27 | 55 | <div class="module-title">All bookmarks</div> |
| 28 | 56 | <span class="module-subtitle">$total bookmarks. Protected ones (default) survive auto-purge; unlocked ones are eligible for cleanup after the retention window.</span> |
| 29 | 57 | </div></div> |
| 30 | 58 | <div class="module-body tight"> |
| 31 | 59 | [if:$has_rows] |
| 32 | 60 | <table class="tbl"> |
| 33 | 61 | <thead><tr> |
| 34 | 62 | <th>Name</th> |
| 35 | <th>By</th> | |
| 36 | <th style="width:130px">Protection</th> | |
| 37 | <th style="width:180px">Moment</th> | |
| 63 | <th style="width:150px">Scope</th> | |
| 64 | <th style="width:110px">By</th> | |
| 65 | <th style="width:120px">Protection</th> | |
| 66 | <th style="width:150px">Moment</th> | |
| 38 | 67 | </tr></thead> |
| 39 | 68 | <tbody> |
| 40 | 69 | [loop:@rows] |
| 41 | 70 | <tr> |
| 42 | 71 | <td><strong>$name</strong><div class="dim" style="font-size:11.5px;margin-top:2px">$description</div></td> |
| 72 | <td> | |
| 73 | <span class="pill $scope_pill" style="font-size:10px">$scope_lbl</span> | |
| 74 | <div class="mono dim" style="font-size:10.5px;margin-top:3px">$scope_h</div> | |
| 75 | </td> | |
| 43 | 76 | <td class="dim">$released_by</td> |
| 44 | 77 | <td><span class="pill $lock_pill">$lock_lbl</span></td> |
| 45 | <td class="mono dim">$released_h</td> | |
| 78 | <td class="mono dim"><span class="ts" data-ts="$released_epoch" data-fmt="datetime">$released_h</span></td> | |
| 46 | 79 | </tr> |
| 47 | 80 | [/loop] |
| 48 | 81 | </tbody> |
| 49 | 82 | </table> |
| 50 | 83 | [/if] |
| 51 | 84 | [if:!$has_rows] |
| 52 | 85 | <div style="padding:36px 14px;text-align:center;color:var(--text-dim);font-size:13.5px"> |
| 53 | 86 | No bookmarks yet. Save your first one above. |
| 54 | 87 | </div> |
| 55 | 88 | [/if] |
| 56 | 89 | </div> |
| 57 | 90 | </div> |