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>This view also shows comments from muted accounts.
</em>
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"
17 <ng-template pTemplate=
"caption">
20 <div class=
"input-group has-feedback has-clear">
21 <div class=
"input-group-prepend c-hand" ngbDropdown
placement=
"bottom-left auto" container=
"body">
22 <div class=
"input-group-text" ngbDropdownToggle
>
23 <span class=
"caret" aria-haspopup=
"menu" role=
"button"></span>
26 <div role=
"menu" ngbDropdownMenu
>
27 <h6 class=
"dropdown-header" i18n
>Advanced comments filters
</h6>
28 <a [routerLink]=
"[ '/admin/moderation/video-comments/list' ]" [queryParams]=
"{ 'search': 'local:true' }" class=
"dropdown-item" i18n
>Local comments
</a>
29 <a [routerLink]=
"[ '/admin/moderation/video-comments/list' ]" [queryParams]=
"{ 'search': 'local:false' }" class=
"dropdown-item" i18n
>Remote comments
</a>
33 type=
"text" name=
"table-filter" id=
"table-filter" i18n-placeholder
placeholder=
"Filter..."
34 (keyup)=
"onInputSearch($event)"
36 <a class=
"glyphicon glyphicon-remove-sign form-control-feedback form-control-clear" (click)=
"resetTableFilter()"></a>
37 <span class=
"sr-only" i18n
>Clear filters
</span>
43 <ng-template pTemplate=
"header">
45 <th style=
"width: 40px"></th>
46 <th style=
"width: 150px;"></th>
47 <th style=
"width: 300px" i18n
>Account
</th>
48 <th style=
"width: 300px" i18n
>Video
</th>
50 <th style=
"width: 150px;" i18n
pSortableColumn=
"createdAt">Date
<p-sortIcon field=
"createdAt"></p-sortIcon></th>
54 <ng-template pTemplate=
"body" let-videoComment
let-expanded=
"expanded">
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>
62 <td class=
"action-cell">
64 [ngClass]=
"{ 'show': expanded }" placement=
"bottom-right" container=
"body"
65 i18n-label
label=
"Actions" [actions]=
"videoCommentActions" [entry]=
"videoComment"
66 ></my-action-dropdown>
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">
74 [src]=
"videoComment.accountAvatarUrl"
78 {{ videoComment.account.displayName }}
79 <span>{{ videoComment.by }}
</span>
86 <em i18n
>Commented video
</em>
88 <a [href]=
"videoComment.localUrl" target=
"_blank" rel=
"noopener noreferrer">{{ videoComment.video.name }}
</a>
91 <td class=
"comment-html">
92 <div [innerHTML]=
"videoComment.textHtml"></div>
95 <td>{{ videoComment.createdAt | date: 'short' }}
</td>
99 <ng-template pTemplate=
"rowexpansion" let-videoComment
>
101 <td class=
"expand-cell" colspan=
"5">
102 <div [innerHTML]=
"videoComment.textHtml"></div>
107 <ng-template pTemplate=
"emptymessage">
110 <div class=
"no-results">
111 <ng-container *
ngIf=
"search" i18n
>No comments found matching current filters.
</ng-container>
112 <ng-container *
ngIf=
"!search" i18n
>No comments found.
</ng-container>