Verified Commit b72ec06b authored by Rigel Kent's avatar Rigel Kent
Browse files

Display video redundancy entries as table link objects

parent 1d26d05f
......@@ -13,15 +13,14 @@
[value]="videoRedundancies" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [rowsPerPageOptions]="rowsPerPageOptions"
[sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id" (onPage)="onPage($event)"
[sortField]="sort.field" [sortOrder]="sort.order" (onLazyLoad)="loadLazy($event)" dataKey="id"
(onPage)="onPage($event)" [expandedRowKeys]="expandedRows"
<ng-template pTemplate="header">
<th style="width: 40px;"></th>
<th style="width: 160px;" i18n *ngIf="isDisplayingRemoteVideos()">Strategy</th>
<th i18n pSortableColumn="name">Video name <p-sortIcon field="name"></p-sortIcon></th >
<th i18n>Video URL</th>
<th i18n pSortableColumn="name">Video <p-sortIcon field="name"></p-sortIcon></th >
<th style="width: 100px;" i18n *ngIf="isDisplayingRemoteVideos()">Total size</th>
<th style="width: 80px;"></th>
......@@ -38,10 +37,11 @@
<td *ngIf="isDisplayingRemoteVideos()">{{ getRedundancyStrategy(redundancy) }}</td>
<td>{{ }}</td>
<a target="_blank" rel="noopener noreferrer" [href]="redundancy.url">{{ redundancy.url }}</a>
<a [href]="redundancy.url" i18n-title title="Open video in a new tab" target="_blank" rel="noopener noreferrer">
{{ }}
<span class="glyphicon glyphicon-new-window"></span>
<td *ngIf="isDisplayingRemoteVideos()">{{ getTotalSize(redundancy) | bytes: 1 }}</td>
@import '_variables';
@import '_mixins';
a {
@include disable-default-a-behaviour;
display: inline-block;
&, &:hover {
color: var(--mainForegroundColor);
span {
font-size: 80%;
color: var(--inputPlaceholderColor);
.expansion-block {
margin-bottom: 20px;
......@@ -17,8 +17,3 @@
<span class="label">Size</span>
<span>{{ redundancyElement.size | bytes: 1 }}</span>
<div *ngIf="redundancyElement.strategy">
<span class="label">Strategy</span>
<span>{{ redundancyElement.strategy }}</span>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment