2 <my-global-icon iconName=
"message-circle" aria-hidden=
"true"></my-global-icon>
3 <ng-container i18n
>Video comments
</ng-container>
5 <my-feed [syndicationItems]=
"syndicationItems"></my-feed>
8 <em i18n
>This view also shows comments from muted accounts.
</em>
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" [selectionPageOnly]=
"true"
14 [showCurrentPageReport]=
"true" i18n-currentPageReportTemplate
15 currentPageReportTemplate=
"Showing {{'{first}'}} to {{'{last}'}} of {{'{totalRecords}'}} comments"
16 [expandedRowKeys]=
"expandedRows" [(selection)]=
"selectedComments"
18 <ng-template pTemplate=
"caption">
22 *
ngIf=
"isInSelectionMode()" i18n-label
label=
"Batch actions" theme=
"orange"
23 [actions]=
"bulkCommentActions" [entry]=
"selectedComments"
29 <my-advanced-input-filter [filters]=
"inputFilters" (search)=
"onSearch($event)"></my-advanced-input-filter>
34 <ng-template pTemplate=
"header">
36 <th style=
"width: 40px;">
37 <p-tableHeaderCheckbox ariaLabel=
"Select all rows" i18n-ariaLabel
></p-tableHeaderCheckbox>
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>
44 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Date
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
48 <ng-template pTemplate=
"body" let-videoComment
let-expanded=
"expanded">
49 <tr [pSelectableRow]=
"videoComment">
51 <td class=
"checkbox-cell">
52 <p-tableCheckbox [value]=
"videoComment" ariaLabel=
"Select this row" i18n-ariaLabel
></p-tableCheckbox>
55 <td class=
"expand-cell" [pRowToggler]=
"videoComment">
56 <my-table-expander-icon i18n-ngbTooltip
ngbTooltip=
"See full comment" [expanded]=
"expanded"></my-table-expander-icon>
59 <td class=
"action-cell">
61 [ngClass]=
"{ 'show': expanded }" placement=
"bottom-right" container=
"body"
62 i18n-label
label=
"Actions" [actions]=
"videoCommentActions" [entry]=
"videoComment"
63 ></my-action-dropdown>
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">
69 <my-actor-avatar [account]=
"videoComment.account" size=
"32"></my-actor-avatar>
71 {{ videoComment.account.displayName }}
72 <span>{{ videoComment.by }}
</span>
79 <em i18n
>Commented video
</em>
81 <a [href]=
"videoComment.localUrl" target=
"_blank" rel=
"noopener noreferrer">{{ videoComment.video.name }}
</a>
84 <td class=
"comment-html c-hand" [pRowToggler]=
"videoComment">
85 <div [innerHTML]=
"videoComment.textHtml"></div>
88 <td class=
"c-hand" [pRowToggler]=
"videoComment">{{ videoComment.createdAt | date: 'short' }}
</td>
92 <ng-template pTemplate=
"rowexpansion" let-videoComment
>
94 <td class=
"expand-cell" colspan=
"5">
95 <div [innerHTML]=
"videoComment.textHtml"></div>
100 <ng-template pTemplate=
"emptymessage">
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>