Diff -- /var/www/vhosts/3dshawn.com/site1/TEMPLATES/pin_hotspots.html
Diff
/var/www/vhosts/3dshawn.com/site1/TEMPLATES/pin_hotspots.html
added on local at 2026-07-12 00:02:12
Added
+73
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to 21e21a2f5da2
to 21e21a2f5da2
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> Bulk pin</span> | |
| 3 | <h1 class="page-title">Pin hotspots to a Named Release</h1> | |
| 4 | <p class="page-subtitle">Freezes the current-latest content of the top-$limit files by change count over the last $days days. Each pin references a specific FILE_CHANGES row, so auto-purge will keep those exact blobs forever.</p> | |
| 5 | </div> | |
| 6 | ||
| 7 | <div class="module glow-teal" style="margin-bottom:16px"> | |
| 8 | <div class="module-head"><div class="left"> | |
| 9 | <div class="module-title">Preview -- $total files to pin</div> | |
| 10 | <span class="module-subtitle">Ranked by change count. Each row will get a NAMED_RELEASE_PINS entry linking to the shown blob SHA.</span> | |
| 11 | </div></div> | |
| 12 | <div class="module-body tight" style="max-height:520px;overflow:auto"> | |
| 13 | [if:$has_top] | |
| 14 | <table class="tbl"> | |
| 15 | <thead><tr> | |
| 16 | <th style="width:60px">Rank</th> | |
| 17 | <th>File</th> | |
| 18 | <th style="width:140px">Site</th> | |
| 19 | <th style="width:80px">Changes</th> | |
| 20 | <th style="width:110px">Blob SHA</th> | |
| 21 | </tr></thead> | |
| 22 | <tbody> | |
| 23 | [loop:@top] | |
| 24 | <tr> | |
| 25 | <td class="mono"><strong>#</strong></td> | |
| 26 | <td class="mono" style="font-size:11.5px"><a href="$diff_url" style="color:var(--accent-hi);text-decoration:none">$file_short</a></td> | |
| 27 | <td class="dim" style="font-size:11.5px">$scan_name</td> | |
| 28 | <td class="mono" style="color:var(--accent-warn);font-weight:700">$change_ct</td> | |
| 29 | <td class="mono dim" style="font-size:11.5px">$sha_short</td> | |
| 30 | </tr> | |
| 31 | [/loop] | |
| 32 | </tbody> | |
| 33 | </table> | |
| 34 | [/if] | |
| 35 | [if:!$has_top] | |
| 36 | <div style="padding:36px 14px;text-align:center;color:var(--text-dim);font-size:13.5px"> | |
| 37 | No file changes in the last $days days. | |
| 38 | </div> | |
| 39 | [/if] | |
| 40 | </div> | |
| 41 | </div> | |
| 42 | ||
| 43 | [if:$has_top] | |
| 44 | <div class="module glow-emerald"> | |
| 45 | <div class="module-head"><div class="left"> | |
| 46 | <div class="module-title">Create the pin release</div> | |
| 47 | <span class="module-subtitle">Creates one NAMED_RELEASES row + $total NAMED_RELEASE_PINS rows in one commit.</span> | |
| 48 | </div></div> | |
| 49 | <div class="module-body"> | |
| 50 | <form method="post" action="/pin_hotspots.cgi" style="display:flex;flex-direction:column;gap:12px"> | |
| 51 | <input type="hidden" name="confirm" value="1"> | |
| 52 | <input type="hidden" name="n" value="$limit"> | |
| 53 | <input type="hidden" name="days" value="$days"> | |
| 54 | <div style="display:flex;gap:12px"> | |
| 55 | <label style="flex:1;display:flex;flex-direction:column;gap:4px"> | |
| 56 | <span class="rb-label">Release name</span> | |
| 57 | <input type="text" name="name" value="$suggest_name" | |
| 58 | 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"> | |
| 59 | </label> | |
| 60 | <label style="flex:2;display:flex;flex-direction:column;gap:4px"> | |
| 61 | <span class="rb-label">Description</span> | |
| 62 | <input type="text" name="description" value="Auto-pinned top-$limit hotspots over last $days days" | |
| 63 | style="background:var(--bg-1);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:12.5px"> | |
| 64 | </label> | |
| 65 | </div> | |
| 66 | <div style="display:flex;justify-content:flex-end;gap:8px"> | |
| 67 | <a href="/dashboard.cgi" class="tr-chip">Cancel</a> | |
| 68 | <button type="submit" class="tr-chip is-active" style="border:none;padding:8px 18px">Pin all $total files</button> | |
| 69 | </div> | |
| 70 | </form> | |
| 71 | </div> | |
| 72 | </div> | |
| 73 | [/if] |