This commit is contained in:
ilyastar9999
2025-12-03 13:52:28 +03:00
parent 07b338e823
commit 6f73f50f31
3 changed files with 57 additions and 10 deletions

View File

@@ -65,7 +65,7 @@
<th>Attacker</th>
<th>Victim</th>
<th>Service</th>
<th>Points</th>
<th>Flags</th>
<th>Type</th>
</tr>
</thead>
@@ -126,13 +126,16 @@
typeLabel = '<span class="badge bg-danger">Against Us</span>';
}
const attackerName = attack.attacker_team_id ? (attack.attacker_team_name || `Team ${attack.attacker_team_id}`) : 'Unknown';
const victimName = attack.victim_team_id ? (attack.victim_team_name || `Team ${attack.victim_team_id}`) : 'Unknown';
html += `
<tr>
<td>${new Date(attack.timestamp).toLocaleString()}</td>
<td>Team ${attack.attacker_team_id}</td>
<td>Team ${attack.victim_team_id}</td>
<td>${attackerName}</td>
<td>${victimName}</td>
<td>${attack.service_name}</td>
<td>${attack.points ? attack.points.toFixed(2) : '-'}</td>
<td>${attack.points ? Math.round(attack.points) : '-'}</td>
<td>${typeLabel}</td>
</tr>
`;