From 91c80859edbd712cf11cdbebd4f1b4186bdcc528 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Mau=C3=9F?= <lukas.mauss@mni.thm.de> Date: Wed, 28 Nov 2018 17:51:03 +0100 Subject: [PATCH] Adjust to outsourced component 'list-statistic' --- .../statistics/statistics.component.html | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/src/app/components/shared/statistics/statistics.component.html b/src/app/components/shared/statistics/statistics.component.html index 4b204bcaa..60cdaf73d 100644 --- a/src/app/components/shared/statistics/statistics.component.html +++ b/src/app/components/shared/statistics/statistics.component.html @@ -2,25 +2,7 @@ <mat-card> <mat-tab-group> <mat-tab *ngFor="let cg of contentGroups; let i = index" label="{{cg.name}}"> - <div fxLayoutAlign="center" fxLayoutGap="10px"> - <table mat-table [dataSource]="dataSource" class="mat-elevation-z8"> - - <ng-container matColumnDef="content"> - <mat-header-cell *matHeaderCellDef> Content </mat-header-cell> - <mat-cell *matCellDef="let cp"> {{cp.content}}</mat-cell> - </ng-container> - - <ng-container matColumnDef="percentage"> - <mat-header-cell *matHeaderCellDef> Percentage </mat-header-cell> - <mat-cell *matCellDef="let cp"> {{cp.percent}}</mat-cell> - </ng-container> - <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row> - <mat-row *matRowDef="let row; columns: displayedColumns"></mat-row> - </table> - </div> - <button mat-raised-button color="primary">Before</button> - <div><b>{{ i+1 }} / {{ contentGroups.length }}</b></div> - <button mat-raised-button color="primary">Next</button> + <app-list-statistic [contentGroup]="cg"></app-list-statistic> </mat-tab> </mat-tab-group> </mat-card> -- GitLab