Added table headings and darkmode fix

This commit is contained in:
Peter 2025-04-11 21:56:46 +02:00
parent 23367b6dea
commit ce9260ede6
2 changed files with 18 additions and 9 deletions

View File

@ -6,15 +6,17 @@
</div> </div>
</app-header> </app-header>
<div class="container"> <div class="darkmodeSection">
<div class="columnContainer"> <div class="columnSection">
<button (click)="punishmentType = 'all'">all</button> <div class="columnContainer">
<button (click)="punishmentType = 'ban'">bans</button> <button (click)="punishmentType = 'all'">all</button>
<button (click)="punishmentType = 'mute'">mutes</button> <button (click)="punishmentType = 'ban'">bans</button>
<button (click)="punishmentType = 'warn'">warnings</button> <button (click)="punishmentType = 'mute'">mutes</button>
</div> <button (click)="punishmentType = 'warn'">warnings</button>
<div class="columnContainer"> </div>
<app-history [userType]="userType" [punishmentType]="punishmentType"></app-history> <div class="columnContainer">
<app-history [userType]="userType" [punishmentType]="punishmentType"></app-history>
</div>
</div> </div>
</div> </div>
</ng-container> </ng-container>

View File

@ -4,6 +4,13 @@
<ng-container *ngIf="history.length > 0"> <ng-container *ngIf="history.length > 0">
<table> <table>
<tr>
<th>Player</th>
<th>Banned By</th>
<th>Reason</th>
<th>Date</th>
<th>Expires</th>
</tr>
<tr *ngFor="let entry of history"> <tr *ngFor="let entry of history">
<td>{{ entry.username }}</td> <td>{{ entry.username }}</td>
<td>{{ entry.punishedBy }}</td> <td>{{ entry.punishedBy }}</td>