|
|
|
@ -7,21 +7,23 @@ import {NodeDTO} from "../../entities/NodeDTO"; |
|
|
|
styleUrls: ['nodes.styles.scss'], |
|
|
|
template: ` |
|
|
|
<!--<p *ngFor="let node of nodes">{{node.long_name}}</p>--> |
|
|
|
<div class="card-wrapper"> |
|
|
|
<mat-card *ngFor="let node of nodes" style="min-width: 250px"> |
|
|
|
<mat-card-header> |
|
|
|
<mat-card-title>{{node.long_name}}</mat-card-title> |
|
|
|
<mat-card-subtitle>{{node.short_name}} ({{node.num}})</mat-card-subtitle> |
|
|
|
</mat-card-header> |
|
|
|
<mat-card-content> |
|
|
|
<p>график</p> |
|
|
|
</mat-card-content> |
|
|
|
<mat-card-actions> |
|
|
|
<button mat-button *ngIf="node.hops_away > 0">Прыжков: {{node.hops_away}}</button> |
|
|
|
<button mat-button>SNR: {{node.snr}}</button> |
|
|
|
<button mat-button>{{node.ts * 1000 | date:"hh:mm dd.MM.yyyy"}}</button> |
|
|
|
</mat-card-actions> |
|
|
|
</mat-card> |
|
|
|
<div style="width: 80%; padding: 0 10%; padding-top: 8px"> |
|
|
|
<div class="card-wrapper"> |
|
|
|
<mat-card *ngFor="let node of nodes"> |
|
|
|
<mat-card-header> |
|
|
|
<mat-card-title>{{node.long_name}}</mat-card-title> |
|
|
|
<mat-card-subtitle>{{node.short_name}} ({{node.num}})</mat-card-subtitle> |
|
|
|
</mat-card-header> |
|
|
|
<mat-card-content> |
|
|
|
<p>график</p> |
|
|
|
</mat-card-content> |
|
|
|
<mat-card-actions> |
|
|
|
<button mat-button *ngIf="node.hops_away > 0">Прыжков: {{node.hops_away}}</button> |
|
|
|
<button mat-button>SNR: {{node.snr}}</button> |
|
|
|
<button mat-button>{{node.ts * 1000 | date:"hh:mm dd.MM.yyyy"}}</button> |
|
|
|
</mat-card-actions> |
|
|
|
</mat-card> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
` |
|
|
|
}) |
|
|
|
|