]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+admin/moderation/video-comment-list/video-comment-list.component.html
Merge remote-tracking branch 'weblate/develop' into develop
[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"
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 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
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
69 <td>
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">
72 <my-actor-avatar [account]="videoComment.account"></my-actor-avatar>
73 <div>
74 {{ videoComment.account.displayName }}
75 <span>{{ videoComment.by }}</span>
76 </div>
77 </div>
78 </a>
79 </td>
80
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>
85 </td>
86
87 <td class="comment-html c-hand" [pRowToggler]="videoComment">
88 <div [innerHTML]="videoComment.textHtml"></div>
89 </td>
90
91 <td class="c-hand" [pRowToggler]="videoComment">{{ videoComment.createdAt | date: 'short' }}</td>
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>
105 <td colspan="7">
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