Diff -- /var/www/vhosts/3dshawn.com/abforge.3dshawn.com/TEMPLATES/abforge_api_keys.html
Diff
/var/www/vhosts/3dshawn.com/abforge.3dshawn.com/TEMPLATES/abforge_api_keys.html
added on local at 2026-07-01 16:01:47
Added
+31
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to 0b303797d23d
to 0b303797d23d
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.| 1 | <div class="page-header"><div><h1>API Keys</h1><p>Read-only access to your stats.</p></div></div> | |
| 2 | [if:$has_new] | |
| 3 | <div class="card" style="background:rgba(62,207,142,0.08);border-color:rgba(62,207,142,0.3);"> | |
| 4 | <h3 class="card-title">Your new API key — copy it now, you won't see it again.</h3> | |
| 5 | <div class="snippet">$new_secret</div> | |
| 6 | </div> | |
| 7 | [/if] | |
| 8 | <div class="card"> | |
| 9 | <form method="POST" action="/api_keys.cgi" class="flex gap-8" style="align-items:flex-end;"> | |
| 10 | <input type="hidden" name="create" value="1"> | |
| 11 | <div class="form-row" style="flex:1; margin:0;"> | |
| 12 | <label class="form-label">Label</label> | |
| 13 | <input class="form-input" name="label" placeholder="Internal dashboard" required> | |
| 14 | </div> | |
| 15 | <button class="btn btn-brand">Create API key</button> | |
| 16 | </form> | |
| 17 | </div> | |
| 18 | [if:$has_keys] | |
| 19 | <div class="card"> | |
| 20 | <table class="table"> | |
| 21 | <thead><tr><th>Prefix</th><th>Label</th><th>Created</th><th>Status</th><th></th></tr></thead> | |
| 22 | <tbody> | |
| 23 | [loop:@keys] | |
| 24 | <tr><td><code>$key_prefix...</code></td><td>$label</td><td>$created_at</td> | |
| 25 | <td>[if:$is_active]<span class="badge running">ACTIVE</span>[/if][if:!$is_active]<span class="badge">REVOKED</span>[/if]</td> | |
| 26 | <td class="right">[if:$is_active]<a class="btn btn-sm btn-danger" href="/api_keys.cgi?revoke=$id">Revoke</a>[/if]</td></tr> | |
| 27 | [/loop] | |
| 28 | </tbody> | |
| 29 | </table> | |
| 30 | </div> | |
| 31 | [/if] |