diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-04-19 20:26:25 +0200 |
---|---|---|
committer | Rigel Kent <par@rigelk.eu> | 2020-05-01 16:41:02 +0200 |
commit | d384061366ae06294c0e222f0fb7ec4f0a172f39 (patch) | |
tree | ac97c69d7be200ab42d70ba50340b42673a4480e /client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html | |
parent | e0a929179a9dc76e035ca7fda2b61d5ff46afbc5 (diff) | |
download | PeerTube-d384061366ae06294c0e222f0fb7ec4f0a172f39.tar.gz PeerTube-d384061366ae06294c0e222f0fb7ec4f0a172f39.tar.zst PeerTube-d384061366ae06294c0e222f0fb7ec4f0a172f39.zip |
Empty states for tables
Diffstat (limited to 'client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html')
-rw-r--r-- | client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html b/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html index d340b5e57..df0a8247e 100644 --- a/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html +++ b/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | <ng-template pTemplate="header"> | 18 | <ng-template pTemplate="header"> |
19 | <tr> | 19 | <tr> |
20 | <th i18n>Account</th> | 20 | <th style="width: 100%;" i18n>Account</th> |
21 | <th style="width: 190px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th> | 21 | <th style="width: 190px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th> |
22 | <th style="width: 100px;"></th> <!-- column for action buttons --> | 22 | <th style="width: 100px;"></th> <!-- column for action buttons --> |
23 | </tr> | 23 | </tr> |
@@ -25,11 +25,38 @@ | |||
25 | 25 | ||
26 | <ng-template pTemplate="body" let-accountBlock> | 26 | <ng-template pTemplate="body" let-accountBlock> |
27 | <tr> | 27 | <tr> |
28 | <td>{{ accountBlock.blockedAccount.nameWithHost }}</td> | 28 | <td> |
29 | <a [href]="accountBlock.blockedAccount.url" i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer"> | ||
30 | <div class="chip two-lines"> | ||
31 | <img | ||
32 | class="avatar" | ||
33 | [src]="accountBlock.blockedAccount.avatar?.path" | ||
34 | (error)="switchToDefaultAvatar($event)" | ||
35 | alt="Avatar" | ||
36 | > | ||
37 | <div> | ||
38 | {{ accountBlock.blockedAccount.displayName }} | ||
39 | <span class="text-muted">{{ accountBlock.blockedAccount.nameWithHost }}</span> | ||
40 | </div> | ||
41 | </div> | ||
42 | </a> | ||
43 | </td> | ||
44 | |||
29 | <td>{{ accountBlock.createdAt }}</td> | 45 | <td>{{ accountBlock.createdAt }}</td> |
30 | <td class="action-cell"> | 46 | <td class="action-cell"> |
31 | <button class="unblock-button" (click)="unblockAccount(accountBlock)" i18n>Unmute</button> | 47 | <button class="unblock-button" (click)="unblockAccount(accountBlock)" i18n>Unmute</button> |
32 | </td> | 48 | </td> |
33 | </tr> | 49 | </tr> |
34 | </ng-template> | 50 | </ng-template> |
51 | |||
52 | <ng-template pTemplate="emptymessage"> | ||
53 | <tr> | ||
54 | <td colspan="6"> | ||
55 | <div class="empty-table-message"> | ||
56 | <ng-container *ngIf="search" i18n>No account found matching current filters.</ng-container> | ||
57 | <ng-container *ngIf="!search" i18n>No account found.</ng-container> | ||
58 | </div> | ||
59 | </td> | ||
60 | </tr> | ||
61 | </ng-template> | ||
35 | </p-table> | 62 | </p-table> |