Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
PowerPanel-Frontend/src/app/generator-search/generator-search.component.html
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
32 lines (32 sloc)
1.36 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12 mx-auto mt-4"> | |
<h4 class="text-center mb-3">Your Generators</h4> | |
<mat-spinner *ngIf="loading$"></mat-spinner> | |
<mat-grid-list cols="3" rowHeight="1:1"> | |
<mat-grid-tile *ngFor="let generator of generators$"> | |
<mat-card mat-ripple class="generator-card" (click)="goToGenerator(generator)"> | |
<mat-card-header> | |
<mat-card-title>{{ generator.gen_name }}</mat-card-title> | |
<mat-card-subtitle>{{ generator.state.status }}</mat-card-subtitle> | |
</mat-card-header> | |
<mat-list *ngIf="generator.state.online"> | |
<mat-list-item> | |
<mat-icon matListIcon>error</mat-icon> | |
<p matLine> | |
<span> Active Faults: {{ generator.state.fault_count }} </span> | |
</p> | |
</mat-list-item> | |
<mat-list-item> | |
<mat-icon matListIcon>settings_ethernet</mat-icon> | |
<p matLine> | |
<span> IP Address: {{ generator.state.ip }} </span> | |
</p> | |
</mat-list-item> | |
</mat-list> | |
</mat-card> | |
</mat-grid-tile> | |
</mat-grid-list> | |
</div> | |
</div> | |
</div> |