From f8ab53e1fbaaa2076adeff7a0a9616073f8edd40 Mon Sep 17 00:00:00 2001
From: paf <paf@titelfrei.de>
Date: Tue, 19 Jan 2021 11:38:41 +0100
Subject: [PATCH] improve stat view

---
 src/app/workspace-admin/files/files.component.html | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/app/workspace-admin/files/files.component.html b/src/app/workspace-admin/files/files.component.html
index 924e2ea9..48c8c6c0 100644
--- a/src/app/workspace-admin/files/files.component.html
+++ b/src/app/workspace-admin/files/files.component.html
@@ -94,14 +94,15 @@
     </iqb-files-upload-queue>
 
     <ng-container *ngFor="let stat of fileStats.types | keyvalue">
-      <alert level="info" text="{{stat.value.invalid}} valide Datei{{stat.value.invalid == 1 ? '' : 'en'}} vom Typ
-        {{stat.key}} {{(stat.value.total > stat.value.invalid) ? '(von insgesamt ' + stat.value.total + ')' : ''}}">
+      <alert level="info" text="{{stat.value.total - stat.value.invalid}} valide
+        `{{stat.key}}`-Datei{{stat.value.invalid == 1 ? '' : 'en'}}
+         {{(stat.value.total > stat.value.invalid) ? '(von ' + stat.value.total + ')' : ''}}">
       </alert>
     </ng-container>
 
     <alert level="info" text="{{fileStats.testtakers}} Testteilnehmer definiert."></alert>
 
-    <alert *ngIf="fileStats.invalid" level="error" text="{{fileStats.invalid}} Datei{{fileStats.invalid == 1 ? '' : 'en'}}
+    <alert *ngIf="fileStats.invalid" level="error" text="`{{fileStats.invalid}}` Datei{{fileStats.invalid == 1 ? '' : 'en'}}
       von {{fileStats.total}} sind nicht valide oder haben fehlende Abhängigkeiten und werden ignoriert!">
     </alert>
   </div>
-- 
GitLab