diff options
Diffstat (limited to 'client/src/app/+admin')
3 files changed, 20 insertions, 11 deletions
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html index 152f6f29d..28d57f83c 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html +++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html | |||
@@ -13,15 +13,14 @@ | |||
13 | 13 | ||
14 | <p-table | 14 | <p-table |
15 | [value]="videoRedundancies" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions" | 15 | [value]="videoRedundancies" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions" |
16 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id" (onPage)="onPage($event)" | 16 | [sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id" |
17 | (onPage)="onPage($event)" [expandedRowKeys]="expandedRows" | 17 | (onPage)="onPage($event)" [expandedRowKeys]="expandedRows" |
18 | > | 18 | > |
19 | <ng-template pTemplate="header"> | 19 | <ng-template pTemplate="header"> |
20 | <tr> | 20 | <tr> |
21 | <th style="width: 40px;"></th> | 21 | <th style="width: 40px;"></th> |
22 | <th style="width: 160px;" i18n *ngIf="isDisplayingRemoteVideos()">Strategy</th> | 22 | <th style="width: 160px;" i18n *ngIf="isDisplayingRemoteVideos()">Strategy</th> |
23 | <th i18n pSortableColumn="name">Video name <p-sortIcon field="name"></p-sortIcon></th > | 23 | <th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th > |
24 | <th i18n>Video URL</th> | ||
25 | <th style="width: 100px;" i18n *ngIf="isDisplayingRemoteVideos()">Total size</th> | 24 | <th style="width: 100px;" i18n *ngIf="isDisplayingRemoteVideos()">Total size</th> |
26 | <th style="width: 80px;"></th> | 25 | <th style="width: 80px;"></th> |
27 | </tr> | 26 | </tr> |
@@ -38,10 +37,11 @@ | |||
38 | 37 | ||
39 | <td *ngIf="isDisplayingRemoteVideos()">{{ getRedundancyStrategy(redundancy) }}</td> | 38 | <td *ngIf="isDisplayingRemoteVideos()">{{ getRedundancyStrategy(redundancy) }}</td> |
40 | 39 | ||
41 | <td>{{ redundancy.name }}</td> | ||
42 | |||
43 | <td> | 40 | <td> |
44 | <a target="_blank" rel="noopener noreferrer" [href]="redundancy.url">{{ redundancy.url }}</a> | 41 | <a [href]="redundancy.url" i18n-title title="Open video in a new tab" target="_blank" rel="noopener noreferrer"> |
42 | {{ redundancy.name }} | ||
43 | <span class="glyphicon glyphicon-new-window"></span> | ||
44 | </a> | ||
45 | </td> | 45 | </td> |
46 | 46 | ||
47 | <td *ngIf="isDisplayingRemoteVideos()">{{ getTotalSize(redundancy) | bytes: 1 }}</td> | 47 | <td *ngIf="isDisplayingRemoteVideos()">{{ getTotalSize(redundancy) | bytes: 1 }}</td> |
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.scss b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.scss index e1085cd1b..dc43e4007 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.scss +++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.scss | |||
@@ -1,6 +1,20 @@ | |||
1 | @import '_variables'; | 1 | @import '_variables'; |
2 | @import '_mixins'; | 2 | @import '_mixins'; |
3 | 3 | ||
4 | a { | ||
5 | @include disable-default-a-behaviour; | ||
6 | display: inline-block; | ||
7 | |||
8 | &, &:hover { | ||
9 | color: var(--mainForegroundColor); | ||
10 | } | ||
11 | |||
12 | span { | ||
13 | font-size: 80%; | ||
14 | color: var(--inputPlaceholderColor); | ||
15 | } | ||
16 | } | ||
17 | |||
4 | .expansion-block { | 18 | .expansion-block { |
5 | margin-bottom: 20px; | 19 | margin-bottom: 20px; |
6 | } | 20 | } |
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.html b/client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.html index a379520e3..9de6e4661 100644 --- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.html +++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancy-information.component.html | |||
@@ -17,8 +17,3 @@ | |||
17 | <span class="label">Size</span> | 17 | <span class="label">Size</span> |
18 | <span>{{ redundancyElement.size | bytes: 1 }}</span> | 18 | <span>{{ redundancyElement.size | bytes: 1 }}</span> |
19 | </div> | 19 | </div> |
20 | |||
21 | <div *ngIf="redundancyElement.strategy"> | ||
22 | <span class="label">Strategy</span> | ||
23 | <span>{{ redundancyElement.strategy }}</span> | ||
24 | </div> | ||