diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-16 11:55:17 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-16 13:48:58 +0100 |
commit | f1273314593a4a7dc7ec9594ce0c6c3ae8f62b34 (patch) | |
tree | cf1f3949e64a24a820833950d7b2bbf9ccd40013 /client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html | |
parent | 0f8d00e3144060270d7fe603865fccaf18649c47 (diff) | |
download | PeerTube-f1273314593a4a7dc7ec9594ce0c6c3ae8f62b34.tar.gz PeerTube-f1273314593a4a7dc7ec9594ce0c6c3ae8f62b34.tar.zst PeerTube-f1273314593a4a7dc7ec9594ce0c6c3ae8f62b34.zip |
Add admin view to manage comments
Diffstat (limited to 'client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html')
-rw-r--r-- | client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html b/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html index b4f66a75f..45c5fe28f 100644 --- a/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html +++ b/client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html | |||
@@ -1,9 +1,11 @@ | |||
1 | <h1> | 1 | <h1> |
2 | <my-global-icon iconName="cross" aria-hidden="true"></my-global-icon> | 2 | <my-global-icon iconName="message-circle" aria-hidden="true"></my-global-icon> |
3 | <ng-container i18n>Video comments</ng-container> | 3 | <ng-container i18n>Video comments</ng-container> |
4 | |||
5 | <my-feed [syndicationItems]="syndicationItems"></my-feed> | ||
4 | </h1> | 6 | </h1> |
5 | 7 | ||
6 | this view does show comments from muted accounts so you can delete them | 8 | <em>This view also shows comments from muted accounts.</em> |
7 | 9 | ||
8 | <p-table | 10 | <p-table |
9 | [value]="comments" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions" | 11 | [value]="comments" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions" |
@@ -29,7 +31,7 @@ this view does show comments from muted accounts so you can delete them | |||
29 | </div> | 31 | </div> |
30 | <input | 32 | <input |
31 | type="text" name="table-filter" id="table-filter" i18n-placeholder placeholder="Filter..." | 33 | type="text" name="table-filter" id="table-filter" i18n-placeholder placeholder="Filter..." |
32 | (keyup)="onSearch($event)" | 34 | (keyup)="onInputSearch($event)" |
33 | > | 35 | > |
34 | <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="resetTableFilter()"></a> | 36 | <a class="glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)="resetTableFilter()"></a> |
35 | <span class="sr-only" i18n>Clear filters</span> | 37 | <span class="sr-only" i18n>Clear filters</span> |
@@ -41,9 +43,9 @@ this view does show comments from muted accounts so you can delete them | |||
41 | <ng-template pTemplate="header"> | 43 | <ng-template pTemplate="header"> |
42 | <tr> | 44 | <tr> |
43 | <th style="width: 40px"></th> | 45 | <th style="width: 40px"></th> |
44 | <th style="width: 100px;" i18n>Account</th> | 46 | <th style="width: 300px" i18n>Account</th> |
45 | <th style="width: 100px;" i18n>Video</th> | 47 | <th style="width: 300px" i18n>Video</th> |
46 | <th style="width: 100px;" i18n>Comment</th> | 48 | <th i18n>Comment</th> |
47 | <th style="width: 150px;" i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th> | 49 | <th style="width: 150px;" i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th> |
48 | <th style="width: 150px;"></th> | 50 | <th style="width: 150px;"></th> |
49 | </tr> | 51 | </tr> |
@@ -58,14 +60,28 @@ this view does show comments from muted accounts so you can delete them | |||
58 | </td> | 60 | </td> |
59 | 61 | ||
60 | <td> | 62 | <td> |
61 | {{ videoComment.by }} | 63 | <a [href]="videoComment.account.localUrl" i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer"> |
64 | <div class="chip two-lines"> | ||
65 | <img | ||
66 | class="avatar" | ||
67 | [src]="videoComment.accountAvatarUrl" | ||
68 | alt="" | ||
69 | > | ||
70 | <div> | ||
71 | {{ videoComment.account.displayName }} | ||
72 | <span>{{ videoComment.by }}</span> | ||
73 | </div> | ||
74 | </div> | ||
75 | </a> | ||
62 | </td> | 76 | </td> |
63 | 77 | ||
64 | <td> | 78 | <td class="video"> |
65 | {{ videoComment.video.name }} | 79 | <em i18n>Commented video</em> |
80 | |||
81 | <a [href]="videoComment.localUrl" target="_blank" rel="noopener noreferrer">{{ videoComment.video.name }}</a> | ||
66 | </td> | 82 | </td> |
67 | 83 | ||
68 | <td> | 84 | <td class="comment-html"> |
69 | <div [innerHTML]="videoComment.textHtml"></div> | 85 | <div [innerHTML]="videoComment.textHtml"></div> |
70 | </td> | 86 | </td> |
71 | 87 | ||