2025-04-11 19:20:02 +00:00
|
|
|
<ng-container *ngIf="history.length === 0">
|
|
|
|
|
<p>No history found</p>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|
|
|
|
|
<ng-container *ngIf="history.length > 0">
|
2025-04-11 22:53:20 +00:00
|
|
|
<table [cellSpacing]="0">
|
2025-04-12 19:55:25 +00:00
|
|
|
<div class="historyTableHead">
|
2025-04-11 22:53:20 +00:00
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2025-04-12 15:05:08 +00:00
|
|
|
<th class="historyType">Type</th>
|
2025-04-11 22:53:20 +00:00
|
|
|
<th class="historyPlayer">Player</th>
|
|
|
|
|
<th class="historyPlayer">Banned By</th>
|
|
|
|
|
<th class="historyReason">Reason</th>
|
|
|
|
|
<th class="historyDate">Date</th>
|
|
|
|
|
<th class="historyDate">Expires</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<tbody>
|
2025-04-18 19:54:36 +00:00
|
|
|
<tr class="historyPlayerRow" *ngFor="let entry of history">
|
2025-04-19 02:02:51 +00:00
|
|
|
<td class="historyType" (click)="showDetailedPunishment(entry)">
|
|
|
|
|
{{ this.historyFormat.getType(entry) }}
|
|
|
|
|
</td>
|
|
|
|
|
<td class="historyPlayer" (click)="setSearch(entry.type, entry.username, 'player')">
|
2025-04-12 15:41:29 +00:00
|
|
|
<div class="playerContainer">
|
2025-04-19 02:02:51 +00:00
|
|
|
<img class="avatar" [ngSrc]="this.historyFormat.getAvatarUrl(entry.uuid)" width="25" height="25"
|
2025-04-12 15:41:29 +00:00
|
|
|
alt="{{entry.username}}'s Minecraft skin">
|
|
|
|
|
<span class="username">{{ entry.username }}</span>
|
|
|
|
|
</div>
|
|
|
|
|
</td>
|
2025-04-19 02:02:51 +00:00
|
|
|
<td class="historyPlayer" (click)="setSearch(entry.type, entry.punishedBy, 'staff')">
|
2025-04-12 15:41:29 +00:00
|
|
|
<div class="playerContainer">
|
2025-04-19 02:02:51 +00:00
|
|
|
<img class="avatar" [ngSrc]="this.historyFormat.getAvatarUrl(entry.punishedByUuid)" width="25" height="25"
|
2025-04-12 15:41:29 +00:00
|
|
|
alt="{{entry.punishedBy}}'s Minecraft skin">
|
|
|
|
|
<span>{{ entry.punishedBy }}</span>
|
|
|
|
|
</div>
|
2025-04-12 15:05:08 +00:00
|
|
|
</td>
|
2025-04-19 02:02:51 +00:00
|
|
|
<td class="historyReason" (click)="showDetailedPunishment(entry)">
|
|
|
|
|
{{ entry.reason | removeTrailingPeriod }}
|
|
|
|
|
</td>
|
|
|
|
|
<td class="historyDate" (click)="showDetailedPunishment(entry)">
|
|
|
|
|
{{ this.historyFormat.getPunishmentTime(entry) }}
|
|
|
|
|
</td>
|
|
|
|
|
<td class="historyDate" (click)="showDetailedPunishment(entry)">
|
|
|
|
|
{{ this.historyFormat.getExpiredTime(entry) }}
|
|
|
|
|
</td>
|
2025-04-11 22:53:20 +00:00
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</div>
|
2025-04-11 19:20:02 +00:00
|
|
|
</table>
|
|
|
|
|
</ng-container>
|
|
|
|
|
|