mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-21 04:02:48 +00:00
feat(dashboard): show each pet's icon and kind when moderating pet names
The pet name tables (Pet Names page and the review queue) get the pet's LOT from its owner's save and its CDClient name, shown with the icon in a new Pet column. Each owner on the page is read once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -135,6 +135,12 @@
|
||||
if (!id || id === '0') return '<span class="text-body-secondary">-</span>';
|
||||
return name ? fmt.link('/characters/' + id, name) : '<span class="text-body-secondary" title="Character not found">Unknown (' + esc(id) + ')</span>';
|
||||
},
|
||||
// A pet's kind: its icon and CDClient name (rows from the pet name tables carry lot and kind)
|
||||
pet: function (lot, kind) {
|
||||
if (!lot) return '<span class="text-body-secondary small" title="The owner\'s save doesn\'t hold this pet">Unknown</span>';
|
||||
return '<span class="text-nowrap"><img src="/api/icon/' + esc(lot) + '" width="28" height="28" class="me-1 align-middle" alt="" loading="lazy">' +
|
||||
esc(kind || ('LOT ' + lot)) + ' <span class="small text-body-secondary">(' + esc(lot) + ')</span></span>';
|
||||
},
|
||||
zone: function (id, name) {
|
||||
return esc(name || ('Zone ' + id)) + ' <span class="small text-body-secondary">(' + esc(id) + ')</span>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user