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 (onPage)=
"onPage($event)" [expandedRowKeys]=
"expandedRows"
17 [(selection)]=
"selectedComments"
19 <ng-template pTemplate=
"caption">
23 *
ngIf=
"isInSelectionMode()" i18n-label
label=
"Batch actions" theme=
"orange"
24 [actions]=
"bulkCommentActions" [entry]=
"selectedComments"
30 <my-advanced-input-filter [filters]=
"inputFilters" (search)=
"onSearch($event)"></my-advanced-input-filter>
35 <ng-template pTemplate=
"header">
37 <th style=
"width: 40px;">
38 <p-tableHeaderCheckbox ariaLabel=
"Select all rows" i18n-ariaLabel
></p-tableHeaderCheckbox>
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>
45 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Date
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
49 <ng-template pTemplate=
"body" let-videoComment
let-expanded=
"expanded">
50 <tr [pSelectableRow]=
"videoComment">
52 <td class=
"checkbox-cell">
53 <p-tableCheckbox [value]=
"videoComment" ariaLabel=
"Select this row" i18n-ariaLabel
></p-tableCheckbox>
56 <td class=
"expand-cell" [pRowToggler]=
"videoComment">
57 <my-table-expander-icon i18n-ngbTooltip
ngbTooltip=
"See full comment" [expanded]=
"expanded"></my-table-expander-icon>
60 <td class=
"action-cell">
62 [ngClass]=
"{ 'show': expanded }" placement=
"bottom-right" container=
"body"
63 i18n-label
label=
"Actions" [actions]=
"videoCommentActions" [entry]=
"videoComment"
64 ></my-action-dropdown>
68 <a [href]=
"videoComment.account.localUrl" i18n-title
title=
"Open account in a new tab" target=
"_blank" rel=
"noopener noreferrer">
69 <div class=
"chip two-lines">
70 <my-actor-avatar [account]=
"videoComment.account"></my-actor-avatar>
72 {{ videoComment.account.displayName }}
73 <span>{{ videoComment.by }}
</span>
80 <em i18n
>Commented video
</em>
82 <a [href]=
"videoComment.localUrl" target=
"_blank" rel=
"noopener noreferrer">{{ videoComment.video.name }}
</a>
85 <td class=
"comment-html c-hand" [pRowToggler]=
"videoComment">
86 <div [innerHTML]=
"videoComment.textHtml"></div>
89 <td class=
"c-hand" [pRowToggler]=
"videoComment">{{ videoComment.createdAt | date: 'short' }}
</td>
93 <ng-template pTemplate=
"rowexpansion" let-videoComment
>
95 <td class=
"expand-cell" colspan=
"5">
96 <div [innerHTML]=
"videoComment.textHtml"></div>
101 <ng-template pTemplate=
"emptymessage">
104 <div class=
"no-results">
105 <ng-container *
ngIf=
"search" i18n
>No comments found matching current filters.
</ng-container>
106 <ng-container *
ngIf=
"!search" i18n
>No comments found.
</ng-container>