]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html
Always use my-table-expander-icon
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / moderation / video-comment-list / video-comment-list.component.html
CommitLineData
0f8d00e3 1<h1>
f1273314 2 <my-global-icon iconName="message-circle" aria-hidden="true"></my-global-icon>
0f8d00e3 3 <ng-container i18n>Video comments</ng-container>
f1273314
C
4
5 <my-feed [syndicationItems]="syndicationItems"></my-feed>
0f8d00e3
C
6</h1>
7
e0436741 8<em i18n>This view also shows comments from muted accounts.</em>
0f8d00e3
C
9
10<p-table
2e46eb97
C
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"
0f8d00e3
C
14 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
15 currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} comments"
16 (onPage)="onPage($event)" [expandedRowKeys]="expandedRows"
93991770 17 [(selection)]="selectedComments"
0f8d00e3
C
18>
19 <ng-template pTemplate="caption">
20 <div class="caption">
93991770
C
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
0f8d00e3 29 <div class="ml-auto">
2e46eb97 30 <my-advanced-input-filter [filters]="inputFilters" (search)="onSearch($event)"></my-advanced-input-filter>
0f8d00e3
C
31 </div>
32 </div>
33 </ng-template>
34
35 <ng-template pTemplate="header">
36 <tr>
1378c0d3 37 <th style="width: 40px;">
1916c966 38 <p-tableHeaderCheckbox ariaLabel="Select all rows" i18n-ariaLabel></p-tableHeaderCheckbox>
93991770 39 </th>
1378c0d3 40 <th style="width: 40px;"></th>
7706b370 41 <th style="width: 150px;"></th>
1378c0d3
C
42 <th style="width: 300px;" i18n>Account</th>
43 <th style="width: 300px;" i18n>Video</th>
f1273314 44 <th i18n>Comment</th>
0f8d00e3 45 <th style="width: 150px;" i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th>
0f8d00e3
C
46 </tr>
47 </ng-template>
48
49 <ng-template pTemplate="body" let-videoComment let-expanded="expanded">
93991770
C
50 <tr [pSelectableRow]="videoComment">
51
52 <td class="checkbox-cell">
1916c966 53 <p-tableCheckbox [value]="videoComment" ariaLabel="Select this row" i18n-ariaLabel></p-tableCheckbox>
93991770
C
54 </td>
55
e4611b54
C
56 <td class="expand-cell" [pRowToggler]="videoComment">
57 <my-table-expander-icon i18n-ngbTooltip ngbTooltip="See full comment" [expanded]="expanded"></my-table-expander-icon>
0f8d00e3
C
58 </td>
59
7706b370
C
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
0f8d00e3 67 <td>
f1273314
C
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">
746018f6 70 <my-actor-avatar [account]="videoComment.account"></my-actor-avatar>
fbdcd4ec 71 <div>
f1273314
C
72 {{ videoComment.account.displayName }}
73 <span>{{ videoComment.by }}</span>
74 </div>
75 </div>
76 </a>
0f8d00e3
C
77 </td>
78
f1273314
C
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>
0f8d00e3
C
83 </td>
84
c5dcdab3 85 <td class="comment-html c-hand" [pRowToggler]="videoComment">
0f8d00e3
C
86 <div [innerHTML]="videoComment.textHtml"></div>
87 </td>
88
c5dcdab3 89 <td class="c-hand" [pRowToggler]="videoComment">{{ videoComment.createdAt | date: 'short' }}</td>
0f8d00e3
C
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>
3f6441e0 103 <td colspan="7">
0f8d00e3
C
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