nise/nise-frontend/src/app/banlist/banlist.component.html

76 lines
2.3 KiB
HTML
Raw Normal View History

2024-03-08 07:18:44 +00:00
<div class="main term mb-2">
<div class="fade-stuff">
2024-03-08 08:18:10 +00:00
<h1 class="mb-4"># recent bans</h1>
<div class="alert mb-2 text-center">
<p>
just because an user appears on this list, <u>it doesn't mean they were banned for cheating.</u>
</p>
<p>there are more a multitude of reasons osu!support might close an account.</p>
<p>
all we do is check if the user exists (with their unique id) and if we get a "hey, it's missing" response (aka the <code>User not found! ;_;</code> message) we mark it as possibly banned.
</p>
</div>
<ng-container *ngIf="this.isLoading">
<div class="text-center">
<p>Loading <app-cute-loading></app-cute-loading></p>
<p>please be patient - the database is working hard!</p>
</div>
</ng-container>
<ng-template #nullTemplate>
<code>null</code>
</ng-template>
<table *ngIf="this.banlist">
2024-03-08 07:18:44 +00:00
<thead>
<tr>
<th colspan="2">Username</th>
2024-03-08 08:18:10 +00:00
<th>Time played</th>
<th>Total PP</th>
<th>Rank</th>
2024-03-08 07:18:44 +00:00
<th>Last check</th>
2024-03-08 08:18:10 +00:00
<th>Approximate ban date</th>
2024-03-08 07:18:44 +00:00
<th></th>
</tr>
</thead>
<tbody>
2024-03-08 08:18:10 +00:00
<tr *ngFor="let user of this.banlist.users">
2024-03-08 07:18:44 +00:00
<td>
2024-03-08 08:18:10 +00:00
<img [src]="'https://a.ppy.sh/' + user.userId" class="avatar" style="width: 16px; min-height: 16px; height: 16px;" loading="lazy">
2024-03-08 07:18:44 +00:00
</td>
<td>
<a [routerLink]="['/u', user.username]">
{{ user.username }}
</a>
</td>
2024-03-08 08:18:10 +00:00
<td>
<ng-container *ngIf="user.secondsPlayed else nullTemplate">
{{ formatDuration(user.secondsPlayed) }}
</ng-container>
</td>
<td>
<ng-container *ngIf="user.pp; else nullTemplate">
{{ user.pp | number: '1.0-0' }}
</ng-container>
</td>
<td>
<ng-container *ngIf="user.rank; else nullTemplate">
#{{ user.rank | number }}
</ng-container>
</td>
<td>
<ng-container *ngIf="user.lastUpdate; else nullTemplate">
{{ calculateTimeAgo(user.lastUpdate) }}
</ng-container>
</td>
<td>
{{ user.approximateBanTime | date: 'medium' }}
</td>
2024-03-08 07:18:44 +00:00
<td>
</td>
</tbody>
</table>
</div>
</div>