2025-04-11 19:20:02 +00:00
|
|
|
<ng-container>
|
|
|
|
|
<app-header [current_page]="'bans'" height="200px" background_image="/public/img/backgrounds/staff.png"
|
|
|
|
|
[overlay_gradient]="0.5">>
|
|
|
|
|
<div class="title" header-content>
|
|
|
|
|
<h1>Punishment History</h1>
|
|
|
|
|
</div>
|
|
|
|
|
</app-header>
|
|
|
|
|
|
2025-04-11 20:24:25 +00:00
|
|
|
<main>
|
|
|
|
|
<section class="darkmodeSection">
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="columnSection">
|
2025-04-11 21:35:57 +00:00
|
|
|
<div class="historyTypeContainer">
|
|
|
|
|
<button class="button-outer" (click)="punishmentType = 'all'">All</button>
|
|
|
|
|
<button class="button-outer" (click)="punishmentType = 'ban'">Bans</button>
|
|
|
|
|
<button class="button-outer" (click)="punishmentType = 'mute'">Mutes</button>
|
|
|
|
|
<button class="button-outer" (click)="punishmentType = 'warn'">Warnings</button>
|
2025-04-11 20:24:25 +00:00
|
|
|
</div>
|
2025-04-11 21:35:57 +00:00
|
|
|
<div class="historySearchContainer">
|
2025-04-11 22:54:58 +00:00
|
|
|
<input class="historySearch"
|
|
|
|
|
type="text"
|
|
|
|
|
placeholder="Search.."
|
|
|
|
|
[(ngModel)]="searchTerm"
|
|
|
|
|
(input)="filterNames()"
|
|
|
|
|
>
|
2025-04-11 23:35:40 +00:00
|
|
|
<button class="searchButton" (click)="search()">Search</button>
|
2025-04-11 22:54:58 +00:00
|
|
|
<div class="search-dropdown" *ngIf="filteredNames.length > 0 && searchTerm">
|
|
|
|
|
<div
|
|
|
|
|
class="dropdown-item"
|
|
|
|
|
*ngFor="let name of filteredNames"
|
|
|
|
|
(mousedown)="selectName(name)">
|
|
|
|
|
{{ name }}
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-04-11 20:24:25 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-04-11 21:35:57 +00:00
|
|
|
<div class="historyTable">
|
2025-04-11 23:35:40 +00:00
|
|
|
<app-history [userType]="userType" [punishmentType]="punishmentType"
|
|
|
|
|
[page]="page" [searchTerm]="finalSearchTerm"></app-history>
|
2025-04-11 21:35:57 +00:00
|
|
|
</div>
|
2025-04-11 19:56:46 +00:00
|
|
|
</div>
|
2025-04-11 20:24:25 +00:00
|
|
|
</section>
|
|
|
|
|
</main>
|
2025-04-11 19:20:02 +00:00
|
|
|
</ng-container>
|