Add nsfw badge to tool panel (THE-116)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
s0lray
2026-03-26 15:01:41 -04:00
co-authored by Paperclip
parent 2db8276c09
commit 591ded3875
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -341,6 +341,7 @@
.badge-api { background: #1e90cc; }
.badge-invitation-only { background: #b87800; }
.badge-deprecated { background: #8b3030; }
.badge-nsfw { background: #9b2b9b; }
/* OPSEC row layout */
.opsec-row {
+3
View File
@@ -460,6 +460,9 @@ function openPanel(d) {
if (d.data.deprecated === true) {
badgeHtml += ' <span class="badge-pill badge-deprecated">Deprecated</span>';
}
if (d.data.nsfw === true) {
badgeHtml += ' <span class="badge-pill badge-nsfw">NSFW</span>';
}
badgesEl.innerHTML = badgeHtml;
badgesEl.classList.remove("empty");