Show player game counts with tooltip in admin table
This commit is contained in:
@@ -113,6 +113,7 @@ const translations = {
|
||||
"admin.playerName": "Name",
|
||||
"admin.playerUsername": "Username",
|
||||
"admin.playerStatus": "Status",
|
||||
"admin.playerGames": "Games",
|
||||
"admin.playerJoker": "Joker",
|
||||
"admin.playerDelete": "Delete",
|
||||
"admin.grantJokerChip": "Grant",
|
||||
@@ -272,6 +273,7 @@ const translations = {
|
||||
"admin.playerName": "Name",
|
||||
"admin.playerUsername": "Benutzername",
|
||||
"admin.playerStatus": "Status",
|
||||
"admin.playerGames": "Spiele",
|
||||
"admin.playerJoker": "Joker",
|
||||
"admin.playerDelete": "Löschen",
|
||||
"admin.grantJokerChip": "Joker",
|
||||
|
||||
@@ -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>
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user