1<!-- Copyright (C) 2018 The Android Open Source Project 2 3 Licensed under the Apache License, Version 2.0 (the "License"); 4 you may not use this file except in compliance with the License. 5 You may obtain a copy of the License at 6 7 http://www.apache.org/licenses/LICENSE-2.0 8 9 Unless required by applicable law or agreed to in writing, software 10 distributed under the License is distributed on an "AS IS" BASIS, 11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 See the License for the specific language governing permissions and 13 limitations under the License. 14--> 15<div class="entity-filter"> 16 <app-filter (applyFilters)="applyFilters($event)" [disabled]="loading"></app-filter> 17</div> 18<div class="mat-elevation-z2 entity-table" [ngStyle]="{'opacity': (loading) ? 0.2 : 1 }"> 19 <mat-table #table [dataSource]="dataSource"> 20 <!-- Index Column --> 21 <ng-container matColumnDef="_index"> 22 <mat-header-cell *matHeaderCellDef>No.</mat-header-cell> 23 <mat-cell *matCellDef="let i = index"> {{i+1+pageSize*pageIndex}} </mat-cell> 24 </ng-container> 25 26 <!-- Manifest Branch Column --> 27 <ng-container matColumnDef="artifact_type"> 28 <mat-header-cell *matHeaderCellDef>Artifact Type</mat-header-cell> 29 <mat-cell *matCellDef="let build"> {{build.artifact_type}} </mat-cell> 30 </ng-container> 31 32 <!-- Manifest Branch Column --> 33 <ng-container matColumnDef="manifest_branch"> 34 <mat-header-cell *matHeaderCellDef>Manifest Branch</mat-header-cell> 35 <mat-cell *matCellDef="let build"> {{build.manifest_branch}} </mat-cell> 36 </ng-container> 37 38 <!-- Build ID Column --> 39 <ng-container matColumnDef="build_id"> 40 <mat-header-cell *matHeaderCellDef>Build ID</mat-header-cell> 41 <mat-cell *matCellDef="let build"> {{build.build_id}} </mat-cell> 42 </ng-container> 43 44 <!-- Build Target Column --> 45 <ng-container matColumnDef="build_target"> 46 <mat-header-cell *matHeaderCellDef>Build Target</mat-header-cell> 47 <mat-cell *matCellDef="let build"> {{build.build_target}} </mat-cell> 48 </ng-container> 49 50 <!-- Build Type Column --> 51 <ng-container matColumnDef="build_type"> 52 <mat-header-cell *matHeaderCellDef>Build Type</mat-header-cell> 53 <mat-cell *matCellDef="let build"> {{build.build_type}} </mat-cell> 54 </ng-container> 55 56 <!-- Signed Column --> 57 <ng-container matColumnDef="signed"> 58 <mat-header-cell *matHeaderCellDef>Signed</mat-header-cell> 59 <mat-cell *matCellDef="let build"> {{build.signed}} </mat-cell> 60 </ng-container> 61 62 <mat-header-row *matHeaderRowDef="columnTitles"></mat-header-row> 63 <mat-row *matRowDef="let row; columns: columnTitles;"></mat-row> 64 </mat-table> 65 66 <mat-paginator [length]="count" 67 [pageSize]="pageSize" 68 [pageSizeOptions]="pageSizeOptions" 69 [pageIndex]="pageIndex" 70 (page)="pageEvent = onPageEvent($event)"> 71 </mat-paginator> 72</div> 73<div class="loading-spinner" *ngIf="loading"> 74 <mat-spinner color="primary"></mat-spinner> 75</div> 76