diff options
author | Kim <1877318+kimsible@users.noreply.github.com> | 2020-07-31 11:30:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-31 11:30:57 +0200 |
commit | 30814423ae98b6ac5f7407fc53cffe32aae57124 (patch) | |
tree | 8cc300366fdf2c6dc8e3dfc4c1e6c079dfd11571 /client/src/app/shared/shared-moderation/account-blocklist.component.html | |
parent | 8d987ec63e6888c839ad55938d45809869c517c6 (diff) | |
download | PeerTube-30814423ae98b6ac5f7407fc53cffe32aae57124.tar.gz PeerTube-30814423ae98b6ac5f7407fc53cffe32aae57124.tar.zst PeerTube-30814423ae98b6ac5f7407fc53cffe32aae57124.zip |
Improve (accessibility title) and move action-buttons on left in tables (#2980)
* Improve and move action-buttons on left in tables
* Focus on my-delete and my-button
* Correct spaces syntax
* Move user-action dropdown on the left
Co-authored-by: kimsible <kimsible@users.noreply.github.com>
Diffstat (limited to 'client/src/app/shared/shared-moderation/account-blocklist.component.html')
-rw-r--r-- | client/src/app/shared/shared-moderation/account-blocklist.component.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-moderation/account-blocklist.component.html b/client/src/app/shared/shared-moderation/account-blocklist.component.html index df98cf84e..5af1095f1 100644 --- a/client/src/app/shared/shared-moderation/account-blocklist.component.html +++ b/client/src/app/shared/shared-moderation/account-blocklist.component.html | |||
@@ -24,14 +24,17 @@ | |||
24 | 24 | ||
25 | <ng-template pTemplate="header"> | 25 | <ng-template pTemplate="header"> |
26 | <tr> | 26 | <tr> |
27 | <th style="width: 150px;">Action</th> <!-- column for action buttons --> | ||
27 | <th style="width: 100%;" i18n>Account</th> | 28 | <th style="width: 100%;" i18n>Account</th> |
28 | <th style="width: 150px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th> | 29 | <th style="width: 150px;" i18n pSortableColumn="createdAt">Muted at <p-sortIcon field="createdAt"></p-sortIcon></th> |
29 | <th style="width: 150px;"></th> <!-- column for action buttons --> | ||
30 | </tr> | 30 | </tr> |
31 | </ng-template> | 31 | </ng-template> |
32 | 32 | ||
33 | <ng-template pTemplate="body" let-accountBlock> | 33 | <ng-template pTemplate="body" let-accountBlock> |
34 | <tr> | 34 | <tr> |
35 | <td class="action-cell"> | ||
36 | <button class="unblock-button" (click)="unblockAccount(accountBlock)" i18n>Unmute</button> | ||
37 | </td> | ||
35 | <td> | 38 | <td> |
36 | <a [href]="accountBlock.blockedAccount.url" i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer"> | 39 | <a [href]="accountBlock.blockedAccount.url" i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer"> |
37 | <div class="chip two-lines"> | 40 | <div class="chip two-lines"> |
@@ -50,9 +53,6 @@ | |||
50 | </td> | 53 | </td> |
51 | 54 | ||
52 | <td>{{ accountBlock.createdAt | date: 'short' }}</td> | 55 | <td>{{ accountBlock.createdAt | date: 'short' }}</td> |
53 | <td class="action-cell"> | ||
54 | <button class="unblock-button" (click)="unblockAccount(accountBlock)" i18n>Unmute</button> | ||
55 | </td> | ||
56 | </tr> | 56 | </tr> |
57 | </ng-template> | 57 | </ng-template> |
58 | 58 | ||