2025-04-11 19:20:02 +00:00
|
|
|
<ng-container>
|
2025-04-12 15:16:10 +00:00
|
|
|
<app-header [current_page]="'bans'" height="200px" background_image="/public/img/backgrounds/staff.png"
|
2025-04-11 19:20:02 +00:00
|
|
|
[overlay_gradient]="0.5">>
|
|
|
|
|
<div class="title" header-content>
|
2025-04-12 15:16:10 +00:00
|
|
|
<h1>Minecraft Punishments</h1>
|
2025-04-11 19:20:02 +00:00
|
|
|
</div>
|
|
|
|
|
</app-header>
|
|
|
|
|
|
2025-04-11 20:24:25 +00:00
|
|
|
<main>
|
|
|
|
|
<section class="darkmodeSection">
|
|
|
|
|
<div class="container">
|
|
|
|
|
<div class="columnSection">
|
2025-04-12 15:05:08 +00:00
|
|
|
<div class="historyButtonContainer">
|
2025-04-12 17:42:06 +00:00
|
|
|
<div [id]="getCurrentButtonId('all')" class="button-outer" (click)="changeHistoryPunishment('all')">
|
|
|
|
|
<span class="button-inner"
|
2025-04-12 15:05:08 +00:00
|
|
|
[ngClass]="active">All</span>
|
|
|
|
|
</div>
|
2025-04-12 17:42:06 +00:00
|
|
|
<div [id]="getCurrentButtonId('ban')" class="button-outer" (click)="changeHistoryPunishment('ban')">
|
|
|
|
|
<span class="button-inner"
|
2025-04-12 15:05:08 +00:00
|
|
|
[ngClass]="active">Bans</span>
|
|
|
|
|
</div>
|
2025-04-12 17:42:06 +00:00
|
|
|
<div [id]="getCurrentButtonId('mute')" class="button-outer" (click)="changeHistoryPunishment('mute')">
|
|
|
|
|
<span class="button-inner"
|
2025-04-12 15:05:08 +00:00
|
|
|
[ngClass]="active">Mutes</span>
|
|
|
|
|
</div>
|
2025-04-12 17:42:06 +00:00
|
|
|
<div [id]="getCurrentButtonId('warn')" class="button-outer" (click)="changeHistoryPunishment('warn')">
|
|
|
|
|
<span class="button-inner"
|
2025-04-12 15:05:08 +00:00
|
|
|
[ngClass]="active">Warnings</span>
|
|
|
|
|
</div>
|
2025-04-18 19:54:36 +00:00
|
|
|
<div [id]="getCurrentUserTypeButtonId('player')" class="button-outer" (click)="changeUserType('player')"
|
|
|
|
|
style="margin-left: 120px;">
|
|
|
|
|
<span class="button-inner"
|
|
|
|
|
[ngClass]="active">Player</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div [id]="getCurrentUserTypeButtonId('staff')" class="button-outer" (click)="changeUserType('staff')">
|
|
|
|
|
<span class="button-inner"
|
|
|
|
|
[ngClass]="active">Staff</span>
|
|
|
|
|
</div>
|
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"
|
2025-04-12 19:55:25 +00:00
|
|
|
type="search"
|
2025-04-11 22:54:58 +00:00
|
|
|
placeholder="Search.."
|
|
|
|
|
[(ngModel)]="searchTerm"
|
2025-04-12 21:02:28 +00:00
|
|
|
(input)="filterNames()"
|
2025-04-18 19:54:36 +00:00
|
|
|
(keyup.enter)="search()"
|
2025-04-11 22:54:58 +00:00
|
|
|
>
|
2025-04-18 19:54:36 +00:00
|
|
|
<div class="dropdown-results" *ngIf="filteredNames.length > 0 && searchTerm">
|
2025-04-11 22:54:58 +00:00
|
|
|
<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"
|
2025-04-19 02:02:51 +00:00
|
|
|
[page]="page" [searchTerm]="finalSearchTerm" (pageChange)="updatePageSize($event)"
|
|
|
|
|
(selectItem)="setSearch($event)">
|
2025-04-12 20:11:40 +00:00
|
|
|
</app-history>
|
2025-04-11 21:35:57 +00:00
|
|
|
</div>
|
2025-04-12 17:42:06 +00:00
|
|
|
<div class="changePageButtons">
|
2025-04-18 16:45:40 +00:00
|
|
|
<button [ngClass]="{'active': buttonActive(0), 'disabled': !buttonActive(0)}"
|
|
|
|
|
[disabled]="!buttonActive(0)"
|
|
|
|
|
(click)="setPage(0)" class="historyPageButton">
|
2025-04-12 15:41:44 +00:00
|
|
|
First page
|
|
|
|
|
</button>
|
2025-04-18 16:45:40 +00:00
|
|
|
<button [ngClass]="{'active': buttonActive(0), 'disabled': !buttonActive(0)}"
|
|
|
|
|
[disabled]="!buttonActive(0)"
|
|
|
|
|
(click)="previousPage()" class="historyPageButton">
|
2025-04-12 15:41:44 +00:00
|
|
|
Previous page
|
|
|
|
|
</button>
|
2025-04-18 17:33:54 +00:00
|
|
|
<span class="pageNumber">{{ this.page }} / {{ getMaxPage() }}</span>
|
2025-04-18 16:45:40 +00:00
|
|
|
<button [ngClass]="{'active': buttonActive(getMaxPage()), 'disabled': !buttonActive(getMaxPage())}"
|
|
|
|
|
[disabled]="!buttonActive(getMaxPage())"
|
|
|
|
|
(click)="nextPage()" class="historyPageButton">
|
2025-04-12 15:41:44 +00:00
|
|
|
Next page
|
|
|
|
|
</button>
|
2025-04-18 16:45:40 +00:00
|
|
|
<button [ngClass]="{'active': buttonActive(getMaxPage()), 'disabled': !buttonActive(getMaxPage())}"
|
|
|
|
|
[disabled]="!buttonActive(getMaxPage())"
|
|
|
|
|
(click)="setPage(getMaxPage())" class="historyPageButton">
|
2025-04-12 15:41:44 +00:00
|
|
|
Last page
|
|
|
|
|
</button>
|
|
|
|
|
</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>
|