]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+admin/overview/comments/video-comment-list.component.html
Update translations
[github/Chocobozzz/PeerTube.git] / client / src / app / +admin / overview / comments / 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"
807a2280 13 [lazy]="true" (onLazyLoad)="loadLazy($event)" [lazyLoadOnInit]="false" [selectionPageOnly]="true"
0f8d00e3
C
14 [showCurrentPageReport]="true" i18n-currentPageReportTemplate
15 currentPageReportTemplate="Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} comments"
e6492b2d 16 [expandedRowKeys]="expandedRows" [(selection)]="selectedComments"
0f8d00e3
C
17>
18 <ng-template pTemplate="caption">
19 <div class="caption">
93991770
C
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
0f8d00e3 28 <div class="ml-auto">
2e46eb97 29 <my-advanced-input-filter [filters]="inputFilters" (search)="onSearch($event)"></my-advanced-input-filter>
0f8d00e3
C
30 </div>
31 </div>
32 </ng-template>
33
34 <ng-template pTemplate="header">
35 <tr>
1378c0d3 36 <th style="width: 40px;">
1916c966 37 <p-tableHeaderCheckbox ariaLabel="Select all rows" i18n-ariaLabel></p-tableHeaderCheckbox>
93991770 38 </th>
1378c0d3 39 <th style="width: 40px;"></th>
7706b370 40 <th style="width: 150px;"></th>
1378c0d3
C
41 <th style="width: 300px;" i18n>Account</th>
42 <th style="width: 300px;" i18n>Video</th>
f1273314 43 <th i18n>Comment</th>
0f8d00e3 44 <th style="width: 150px;" i18n pSortableColumn="createdAt">Date <p-sortIcon field="createdAt"></p-sortIcon></th>
0f8d00e3
C
45 </tr>
46 </ng-template>
47
48 <ng-template pTemplate="body" let-videoComment let-expanded="expanded">
93991770
C
49 <tr [pSelectableRow]="videoComment">
50
51 <td class="checkbox-cell">
1916c966 52 <p-tableCheckbox [value]="videoComment" ariaLabel="Select this row" i18n-ariaLabel></p-tableCheckbox>
93991770
C
53 </td>
54
e4611b54
C
55 <td class="expand-cell" [pRowToggler]="videoComment">
56 <my-table-expander-icon i18n-ngbTooltip ngbTooltip="See full comment" [expanded]="expanded"></my-table-expander-icon>
0f8d00e3
C
57 </td>
58
7706b370
C
59 <td class="action-cell">
60 <my-action-dropdown
61 [ngClass]="{ 'show': expanded }" placement="bottom-right" container="body"
62 i18n-label label="Actions" [actions]="videoCommentActions" [entry]="videoComment"
63 ></my-action-dropdown>
64 </td>
65
0f8d00e3 66 <td>
f1273314
C
67 <a [href]="videoComment.account.localUrl" i18n-title title="Open account in a new tab" target="_blank" rel="noopener noreferrer">
68 <div class="chip two-lines">
d0800f76 69 <my-actor-avatar [account]="videoComment.account" size="32"></my-actor-avatar>
fbdcd4ec 70 <div>
f1273314
C
71 {{ videoComment.account.displayName }}
72 <span>{{ videoComment.by }}</span>
73 </div>
74 </div>
75 </a>
0f8d00e3
C
76 </td>
77
f1273314
C
78 <td class="video">
79 <em i18n>Commented video</em>
80
81 <a [href]="videoComment.localUrl" target="_blank" rel="noopener noreferrer">{{ videoComment.video.name }}</a>
0f8d00e3
C
82 </td>
83
c5dcdab3 84 <td class="comment-html c-hand" [pRowToggler]="videoComment">
0f8d00e3
C
85 <div [innerHTML]="videoComment.textHtml"></div>
86 </td>
87
c5dcdab3 88 <td class="c-hand" [pRowToggler]="videoComment">{{ videoComment.createdAt | date: 'short' }}</td>
0f8d00e3
C
89 </tr>
90 </ng-template>
91
92 <ng-template pTemplate="rowexpansion" let-videoComment>
93 <tr>
94 <td class="expand-cell" colspan="5">
95 <div [innerHTML]="videoComment.textHtml"></div>
96 </td>
97 </tr>
98 </ng-template>
99
100 <ng-template pTemplate="emptymessage">
101 <tr>
3f6441e0 102 <td colspan="7">
0f8d00e3
C
103 <div class="no-results">
104 <ng-container *ngIf="search" i18n>No comments found matching current filters.</ng-container>
105 <ng-container *ngIf="!search" i18n>No comments found.</ng-container>
106 </div>
107 </td>
108 </tr>
109 </ng-template>
110</p-table>
111