Diff -- /var/www/vhosts/3dshawn.com/abforge.3dshawn.com/TEMPLATES/abforge_search.html
Diff
/var/www/vhosts/3dshawn.com/abforge.3dshawn.com/TEMPLATES/abforge_search.html
added on local at 2026-07-01 16:01:55
Added
+86
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to 62e3c4929aa8
to 62e3c4929aa8
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 | <div> | |
| 3 | <span class="page-eyebrow"><span class="dot"></span> Global search</span> | |
| 4 | <h1 class="page-title">[if:$has_query]Results for “$query”[/if][if:!$has_query]Search[/if]</h1> | |
| 5 | <p class="page-subtitle">Looks across your sites, experiments, goals, and settings.</p> | |
| 6 | </div> | |
| 7 | </div> | |
| 8 | ||
| 9 | <form method="GET" action="/search.cgi" style="margin-bottom:22px"> | |
| 10 | <div style="display:flex;gap:10px;max-width:640px"> | |
| 11 | <input type="text" name="q" value="$query" placeholder="Type to search..." autofocus | |
| 12 | style="flex:1;background:var(--col-surface-2);border:1px solid var(--col-border);color:var(--col-text);padding:10px 14px;border-radius:10px;font-size:14px"> | |
| 13 | <button type="submit" class="btn btn-primary">Search</button> | |
| 14 | </div> | |
| 15 | </form> | |
| 16 | ||
| 17 | [if:$has_query] | |
| 18 | [if:!$has_any] | |
| 19 | <div style="text-align:center;padding:48px 24px;background:var(--col-surface-1);border:1px solid var(--col-border);border-radius:12px"> | |
| 20 | <div class="text-sm fw-600" style="color:#fff;margin-bottom:6px">No results for “$query”</div> | |
| 21 | <div class="text-xs text-dim">Try a shorter term or a different word. Try a site domain, experiment name, or feature name.</div> | |
| 22 | </div> | |
| 23 | [/if] | |
| 24 | ||
| 25 | [if:$has_models] | |
| 26 | <h2 style="font-size:16px;letter-spacing:1px;text-transform:uppercase;color:var(--col-text-3);margin:24px 0 12px">Your sites</h2> | |
| 27 | <table class="pr-table"> | |
| 28 | <thead><tr> | |
| 29 | <th style="width:140px"></th> | |
| 30 | <th>Title</th> | |
| 31 | <th style="width:220px;white-space:nowrap">Category</th> | |
| 32 | <th style="width:180px;white-space:nowrap">Status</th> | |
| 33 | <th style="width:180px;white-space:nowrap">Actions</th> | |
| 34 | </tr></thead> | |
| 35 | <tbody> | |
| 36 | [loop:@models] | |
| 37 | <tr> | |
| 38 | <td> | |
| 39 | [if:$loop1.has_thumb]<img src="$loop1.thumb" alt="" class="search-thumb">[/if] | |
| 40 | [if:!$loop1.has_thumb]<div class="search-thumb search-thumb-empty">$loop1.thumb_initial</div>[/if] | |
| 41 | </td> | |
| 42 | <td><strong style="color:var(--col-text);font-size:16px">$loop1.title</strong></td> | |
| 43 | <td style="white-space:nowrap">$loop1.category</td> | |
| 44 | <td style="white-space:nowrap">$loop1.status</td> | |
| 45 | <td style="white-space:nowrap"><a href="$loop1.href" class="search-edit-btn"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 20h9"/><path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z"/></svg><span>Edit</span></a></td> | |
| 46 | </tr> | |
| 47 | [/loop] | |
| 48 | </tbody> | |
| 49 | </table> | |
| 50 | [/if] | |
| 51 | ||
| 52 | [if:$has_orders] | |
| 53 | <h2 style="font-size:16px;letter-spacing:1px;text-transform:uppercase;color:var(--col-text-3);margin:24px 0 12px">Experiments</h2> | |
| 54 | <table class="pr-table"> | |
| 55 | <thead><tr><th>Name</th><th>Site</th><th>Status</th><th>Started</th></tr></thead> | |
| 56 | <tbody> | |
| 57 | [loop:@orders] | |
| 58 | <tr> | |
| 59 | <td><strong style="color:var(--col-text)">$loop1.exp_name</strong></td> | |
| 60 | <td>$loop1.amount</td> | |
| 61 | <td>$loop1.status</td> | |
| 62 | <td>$loop1.placed_on</td> | |
| 63 | </tr> | |
| 64 | [/loop] | |
| 65 | </tbody> | |
| 66 | </table> | |
| 67 | [/if] | |
| 68 | ||
| 69 | [if:$has_settings_hits] | |
| 70 | <h2 style="font-size:16px;letter-spacing:1px;text-transform:uppercase;color:var(--col-text-3);margin:24px 0 12px">Settings & tools</h2> | |
| 71 | <div style="display:flex;flex-direction:column;gap:8px"> | |
| 72 | [loop:@settings_hits] | |
| 73 | <a href="$loop1.href" style="display:block;padding:12px 14px;background:var(--col-surface-1);border:1px solid var(--col-border);border-radius:10px;text-decoration:none;color:var(--col-text);transition:border-color 0.12s">$loop1.label</a> | |
| 74 | [/loop] | |
| 75 | </div> | |
| 76 | [/if] | |
| 77 | [/if] | |
| 78 | ||
| 79 | [if:!$has_query] | |
| 80 | <div style="text-align:center;padding:60px 24px;background:var(--col-surface-1);border:1px solid var(--col-border);border-radius:12px;max-width:640px;margin:0 auto"> | |
| 81 | <div class="text-sm fw-600" style="color:#fff;margin-bottom:6px">Type something above to search</div> | |
| 82 | <div class="text-xs text-dim">Search by site domain, experiment name, goal name, or feature name (billing, heatmaps, funnels, etc.).</div> | |
| 83 | </div> | |
| 84 | [/if] | |
| 85 | ||
| 86 | <div class="adm-foot-spacer" data-end="search"> </div> |