Busiest hours count players; fewer descriptions; no Verified badges
Busiest hours and the heatmap count the different players on T or CT in each hour, open segments included, instead of averaging player-hours, so one player for part of an hour is 1, not 0.38. Their descriptions end in the span covered (Last 30 days, or Since <date>). Side-by-side chart panels match heights, and Players per day notes its busiest day. Dropped the page descriptions on Bans, Gags & mutes, Staff and Playtime, and the Verified badges on the staff Overview scoreboard and drawer header; the Verification page and the drawer's Verification section still show it. The GroupVerify DB test now checks the staff drawer, since the public site says nothing about verification.
This commit is contained in:
parent
2516759fa9
commit
ba61708bed
11 changed files with 88 additions and 81 deletions
|
|
@ -115,8 +115,6 @@ async function loadResults() {
|
|||
const list = await api(path + qs({ status, q: state.query, page: state.num }));
|
||||
if (loadResults.want !== want) return;
|
||||
box.innerHTML = publicTable(list.items, bans ? "ban" : "comm") + pager(list);
|
||||
const lead = $("#lead");
|
||||
if (lead && bans) lead.textContent = `${list.active} ${list.active === 1 ? "player is" : "players are"} banned right now. Search for a name or SteamID64 to check a ban and when it ends.`;
|
||||
} catch (err) {
|
||||
box.innerHTML = errorBox(err);
|
||||
}
|
||||
|
|
@ -125,7 +123,7 @@ async function loadResults() {
|
|||
function bans() {
|
||||
$("#view").innerHTML = `
|
||||
<div class="page-head">
|
||||
<div><h1>Bans</h1><p class="sub" id="lead">Search for a name or SteamID64 to check a ban and when it ends.</p></div>
|
||||
<div><h1>Bans</h1></div>
|
||||
</div>
|
||||
<section class="panel">
|
||||
<div class="toolbar">
|
||||
|
|
@ -140,7 +138,7 @@ function bans() {
|
|||
function comms() {
|
||||
$("#view").innerHTML = `
|
||||
<div class="page-head">
|
||||
<div><h1>Gags & mutes</h1><p class="sub">A gag blocks text chat, a mute blocks voice, and a silence blocks both. Blocks carry over between maps and reconnects.</p></div>
|
||||
<div><h1>Gags & mutes</h1></div>
|
||||
</div>
|
||||
<section class="panel">
|
||||
<div class="toolbar">
|
||||
|
|
@ -173,10 +171,9 @@ async function staff() {
|
|||
</div>`;
|
||||
const staffGroups = data.groups.filter((g) => !g.supporter);
|
||||
const supporters = data.groups.filter((g) => g.supporter);
|
||||
const online = data.staffOnline;
|
||||
v.innerHTML = `
|
||||
<div class="page-head">
|
||||
<div><h1>Staff</h1><p class="sub">${online ? `${online} staff ${online === 1 ? "is" : "are"} on the server right now.` : "No staff are on the server right now."}</p></div>
|
||||
<div><h1>Staff</h1></div>
|
||||
</div>
|
||||
${staffGroups.length ? `<section class="panel crew-panel">${staffGroups.map(rankRow).join("")}</section>` : '<div class="empty">No staff are listed yet.</div>'}
|
||||
${supporters.length ? `<h2 class="crew-sep">Supporters</h2><section class="panel crew-panel">${supporters.map(rankRow).join("")}</section>` : ""}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue