1 <div class=
"admin-sub-header">
2 <div class=
"select-filter-block">
3 <label for=
"displayType" i18n
>Display
</label>
5 <div class=
"peertube-select-container">
6 <select id=
"displayType" name=
"displayType" [(ngModel)]=
"displayType" (ngModelChange)=
"onDisplayTypeChanged()" class=
"form-control">
7 <option value=
"my-videos" i18n
>My videos duplicated by remote instances
</option>
8 <option value=
"remote-videos" i18n
>Remote videos duplicated by my instance
</option>
15 [value]=
"videoRedundancies" [lazy]=
"true" [paginator]=
"true" [totalRecords]=
"totalRecords" [rows]=
"rowsPerPage"
16 [sortField]=
"sort.field" [sortOrder]=
"sort.order" (onLazyLoad)=
"loadLazy($event)" dataKey=
"id"
18 <ng-template pTemplate=
"header">
20 <th style=
"width: 40px;"></th>
21 <th style=
"width: 160px;" i18n *
ngIf=
"isDisplayingRemoteVideos()">Strategy
</th>
22 <th i18n
pSortableColumn=
"name">Video name
<p-sortIcon field=
"name"></p-sortIcon></th>
23 <th i18n
>Video URL
</th>
24 <th style=
"width: 100px;" i18n *
ngIf=
"isDisplayingRemoteVideos()">Total size
</th>
25 <th style=
"width: 80px;"></th>
29 <ng-template pTemplate=
"body" let-expanded=
"expanded" let-redundancy
>
33 <span class=
"expander" i18n-ngbTooltip
ngbTooltip=
"List redundancies" [pRowToggler]=
"redundancy">
34 <i [ngClass]=
"expanded ? 'glyphicon glyphicon-menu-down' : 'glyphicon glyphicon-menu-right'"></i>
38 <td *
ngIf=
"isDisplayingRemoteVideos()">{{ getRedundancyStrategy(redundancy) }}
</td>
40 <td>{{ redundancy.name }}
</td>
43 <a target=
"_blank" rel=
"noopener noreferrer" [href]=
"redundancy.url">{{ redundancy.url }}
</a>
46 <td *
ngIf=
"isDisplayingRemoteVideos()">{{ getTotalSize(redundancy) | bytes:
1 }}
</td>
48 <td class=
"action-cell">
49 <my-delete-button (click)=
"removeRedundancy(redundancy)"></my-delete-button>
54 <ng-template pTemplate=
"rowexpansion" let-redundancy
>
55 <tr *
ngIf=
"redundancy.redundancies.files.length !== 0">
56 <td class=
"expand-cell" [attr.colspan]=
"getColspan()">
57 <div *
ngFor=
"let file of redundancy.redundancies.files" class=
"expansion-block">
58 <my-video-redundancy-information [redundancyElement]=
"file"></my-video-redundancy-information>
63 <tr *
ngIf=
"redundancy.redundancies.streamingPlaylists.length !== 0">
64 <td class=
"expand-cell" [attr.colspan]=
"getColspan()">
65 <div *
ngFor=
"let playlist of redundancy.redundancies.streamingPlaylists">
66 <my-video-redundancy-information [redundancyElement]=
"playlist"></my-video-redundancy-information>
74 <div class=
"redundancies-charts" *
ngIf=
"isDisplayingRemoteVideos()">
75 <div class=
"form-sub-title" i18n
>Enabled strategies stats
</div>
77 <div class=
"chart-blocks">
79 <div *
ngIf=
"noRedundancies" i18n
class=
"no-results">
80 No redundancy strategy is enabled on your instance.
83 <div class=
"chart-block" *
ngFor=
"let r of redundanciesGraphsData">
84 <p-chart type=
"pie" [data]=
"r.graphData" [options]=
"r.options" width=
"300px" height=
"300px"></p-chart>