]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html
Refactor search filters
[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>
93991770 37 <th style="width: 40px">
1916c966 38 <p-tableHeaderCheckbox ariaLabel="Select all rows" i18n-ariaLabel></p-tableHeaderCheckbox>
93991770 39 </th>
0f8d00e3 40 <th style="width: 40px"></th>
7706b370 41 <th style="width: 150px;"></th>
f1273314
C
42 <th style="width: 300px" i18n>Account</th>
43 <th style="width: 300px" i18n>Video</th>
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
0f8d00e3
C
56 <td class="expand-cell c-hand" [pRowToggler]="videoComment" i18n-ngbTooltip ngbTooltip="More information" placement="top-left" container="body">
57 <span class="expander">
58 <i [ngClass]="expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
59 </span>
60 </td>
61
7706b370
C
62 <td class="action-cell">
63 <my-action-dropdown
64 [ngClass]="{ 'show': expanded }" placement="bottom-right" container="body"
65 i18n-label label="Actions" [actions]="videoCommentActions" [entry]="videoComment"
66 ></my-action-dropdown>
67 </td>
68
0f8d00e3 69 <td>
f1273314
C
70 <a [href]="videoComment.account.localUrl" i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer">
71 <div class="chip two-lines">
746018f6 72 <my-actor-avatar [account]="videoComment.account"></my-actor-avatar>
fbdcd4ec 73 <div>
f1273314
C
74 {{ videoComment.account.displayName }}
75 <span>{{ videoComment.by }}</span>
76 </div>
77 </div>
78 </a>
0f8d00e3
C
79 </td>
80
f1273314
C
81 <td class="video">
82 <em i18n>Commented video</em>
83
84 <a [href]="videoComment.localUrl" target="_blank" rel="noopener noreferrer">{{ videoComment.video.name }}</a>
0f8d00e3
C
85 </td>
86
c5dcdab3 87 <td class="comment-html c-hand" [pRowToggler]="videoComment">
0f8d00e3
C
88 <div [innerHTML]="videoComment.textHtml"></div>
89 </td>
90
c5dcdab3 91 <td class="c-hand" [pRowToggler]="videoComment">{{ videoComment.createdAt | date: 'short' }}</td>
0f8d00e3
C
92 </tr>
93 </ng-template>
94
95 <ng-template pTemplate="rowexpansion" let-videoComment>
96 <tr>
97 <td class="expand-cell" colspan="5">
98 <div [innerHTML]="videoComment.textHtml"></div>
99 </td>
100 </tr>
101 </ng-template>
102
103 <ng-template pTemplate="emptymessage">
104 <tr>
3f6441e0 105 <td colspan="7">
0f8d00e3
C
106 <div class="no-results">
107 <ng-container *ngIf="search" i18n>No comments found matching current filters.</ng-container>
108 <ng-container *ngIf="!search" i18n>No comments found.</ng-container>
109 </div>
110 </td>
111 </tr>
112 </ng-template>
113</p-table>
114