]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html
Increase timeout
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / moderation / video-comment-list / video-comment-list.component.html
1 <h1>
2 <my-global-icon iconName="message-circle" aria-hidden="true"></my-global-icon>
3 <ng-container i18n>Video comments</ng-container>
4
5 <my-feed [syndicationItems]="syndicationItems"></my-feed>
6 </h1>
7
8 <em i18n>This view also shows comments from muted accounts.</em>
9
10 <p-table
11 [value]="comments" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions"
12 [sortField]="sort.field" [sortOrder]="sort.order" dataKey="id"
13 [lazy]="true" (onLazyLoad)="loadLazy($event)" [lazyLoadOnInit]="false" [selectionPageOnly]="true"
14 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
15 currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} comments"
16 (onPage)="onPage($event)" [expandedRowKeys]="expandedRows"
17 [(selection)]="selectedComments"
18 >
19 <ng-template pTemplate="caption">
20 <div class="caption">
21 <div>
22 <my-action-dropdown
23 *ngIf="isInSelectionMode()" i18n-label label="Batch actions" theme="orange"
24 [actions]="bulkCommentActions" [entry]="selectedComments"
25 >
26 </my-action-dropdown>
27 </div>
28
29 <div class="ml-auto">
30 <my-advanced-input-filter [filters]="inputFilters" (search)="onSearch($event)"></my-advanced-input-filter>
31 </div>
32 </div>
33 </ng-template>
34
35 <ng-template pTemplate="header">
36 <tr>
37 <th style="width: 40px;">
38 <p-tableHeaderCheckbox ariaLabel="Select all rows" i18n-ariaLabel></p-tableHeaderCheckbox>
39 </th>
40 <th style="width: 40px;"></th>
41 <th style="width: 150px;"></th>
42 <th style="width: 300px;" i18n>Account</th>
43 <th style="width: 300px;" i18n>Video</th>
44 <th i18n>Comment</th>
45 <th style="width: 150px;" i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th>
46 </tr>
47 </ng-template>
48
49 <ng-template pTemplate="body" let-videoComment let-expanded="expanded">
50 <tr [pSelectableRow]="videoComment">
51
52 <td class="checkbox-cell">
53 <p-tableCheckbox [value]="videoComment" ariaLabel="Select this row" i18n-ariaLabel></p-tableCheckbox>
54 </td>
55
56 <td class="expand-cell" [pRowToggler]="videoComment">
57 <my-table-expander-icon i18n-ngbTooltip ngbTooltip="See full comment" [expanded]="expanded"></my-table-expander-icon>
58 </td>
59
60 <td class="action-cell">
61 <my-action-dropdown
62 [ngClass]="{ 'show': expanded }" placement="bottom-right" container="body"
63 i18n-label label="Actions" [actions]="videoCommentActions" [entry]="videoComment"
64 ></my-action-dropdown>
65 </td>
66
67 <td>
68 <a [href]="videoComment.account.localUrl" i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer">
69 <div class="chip two-lines">
70 <my-actor-avatar [account]="videoComment.account"></my-actor-avatar>
71 <div>
72 {{ videoComment.account.displayName }}
73 <span>{{ videoComment.by }}</span>
74 </div>
75 </div>
76 </a>
77 </td>
78
79 <td class="video">
80 <em i18n>Commented video</em>
81
82 <a [href]="videoComment.localUrl" target="_blank" rel="noopener noreferrer">{{ videoComment.video.name }}</a>
83 </td>
84
85 <td class="comment-html c-hand" [pRowToggler]="videoComment">
86 <div [innerHTML]="videoComment.textHtml"></div>
87 </td>
88
89 <td class="c-hand" [pRowToggler]="videoComment">{{ videoComment.createdAt | date: 'short' }}</td>
90 </tr>
91 </ng-template>
92
93 <ng-template pTemplate="rowexpansion" let-videoComment>
94 <tr>
95 <td class="expand-cell" colspan="5">
96 <div [innerHTML]="videoComment.textHtml"></div>
97 </td>
98 </tr>
99 </ng-template>
100
101 <ng-template pTemplate="emptymessage">
102 <tr>
103 <td colspan="7">
104 <div class="no-results">
105 <ng-container *ngIf="search" i18n>No comments found matching current filters.</ng-container>
106 <ng-container *ngIf="!search" i18n>No comments found.</ng-container>
107 </div>
108 </td>
109 </tr>
110 </ng-template>
111 </p-table>
112