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