Add history page
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<ng-container *ngIf="history.length === 0">
|
||||
<p>No history found</p>
|
||||
</ng-container>
|
||||
|
||||
<ng-container *ngIf="history.length > 0">
|
||||
<table>
|
||||
<tr *ngFor="let entry of history">
|
||||
<td>{{ entry.username }}</td>
|
||||
<td>{{ entry.punishedBy }}</td>
|
||||
<td>{{ entry.reason }}</td>
|
||||
<td>{{ getPunishmentTime(entry) }}</td>
|
||||
<td>{{ getExpiredTime(entry) }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</ng-container>
|
||||
|
||||
Reference in New Issue
Block a user