Add html for displaying remaining requests on users page

pull/2496/head
Kenton Royal 6 years ago
parent 9c574fb7e9
commit 30c9de818b

@ -48,6 +48,12 @@
<th>
Roles
</th>
<th>
Requests Remaining
</th>
<th>
Next Request Due
</th>
<th (click)="setOrder('lastLoggedIn', $event)">
<a> Last Logged In</a>
<span *ngIf="order === 'lastLoggedIn'">
@ -85,6 +91,22 @@
</div>
</td>
<td class="td-labelled" data-label="Requests Remaining">
<div *ngIf="u.movieRequestQuota != null && u.movieRequestQuota.hasLimit">
Movies: {{u.movieRequestQuota.remaining}}/{{u.movieRequestLimit}} remaining
</div>
<div *ngIf="u.episodeRequestQuota != null && u.episodeRequestQuota.hasLimit">
TV: {{u.episodeRequestQuota.remaining}}/{{u.episodeRequestLimit}} remaining
</div>
</td>
<td class="td-labelled" data-label="Request Due">
<div *ngIf="u.movieRequestQuota != null && u.movieRequestQuota.remaining != u.movieRequestLimit">
Movie: {{u.movieRequestQuota.nextRequest | date: 'short'}}
</div>
<div *ngIf="u.episodeRequestQuota != null && u.episodeRequestQuota.remaining != u.episodeRequestLimit">
TV: {{u.episodeRequestQuota.nextRequest | date: 'short'}}
</div>
</td>
<td class="td-labelled" data-label="Last Logged In:">
{{u.lastLoggedIn | date: 'short'}}
</td>

Loading…
Cancel
Save