aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+admin/moderation/instance-blocklist/instance-account-blocklist.component.html
diff options
context:
space:
mode:
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.html31
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>