Show player game counts with tooltip in admin table

This commit is contained in:
2026-02-05 13:31:03 +01:00
parent a2b3c47462
commit 3dbe9c56ad
5 changed files with 10 additions and 2 deletions

View File

@@ -728,10 +728,12 @@ function renderAdminVoteStatus() {
state.adminVoteStatus.voters.forEach((v) => {
const tr = document.createElement("tr");
const statusText = displayPlayerStatus(v);
const gamesTooltip = (v.suggestionTitles || []).join(", ");
tr.innerHTML = `
<td title="${v.name}">${truncate(v.name, 28)}</td>
<td class="muted small" title="${v.username}">${truncate(v.username, 24)}</td>
<td>${statusText}</td>
<td title="${gamesTooltip}">${v.suggestionCount ?? 0}</td>
<td><button class="chip" data-grant-joker="${v.playerId}" type="button">${v.hasJoker ? "🎟" : t("admin.grantJokerChip")}</button></td>
<td><button class="chip danger-chip" data-delete-player="${v.playerId}" data-name="${v.name}" type="button">✕</button></td>
`;