Skip to content
Snippets Groups Projects
Commit 4b297373 authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Refine statistic-list

parent 994dcdcf
No related merge requests found
......@@ -27,7 +27,7 @@
</ng-container>
<ng-container matColumnDef="counts">
<mat-header-cell *matHeaderCellDef> {{'statistic.total' | translate}} </mat-header-cell>
<mat-header-cell *matHeaderCellDef> {{'statistic.answers' | translate}} </mat-header-cell>
<mat-cell *matCellDef="let cp" [ngClass]="{
'positiveC' : cp.percent >= status.good,
'okayC' : cp.percent >= status.okay && cp.percent < status.good,
......
......@@ -2,14 +2,21 @@ table{
width: 100%;
}
.mat-column-content {
min-width: 120px;
padding-left: 4%;
}
.mat-column-percentage {
display: flex;
justify-content: flex-end;
justify-content: center;
padding-right: 4%;
}
.mat-column-counts {
display: flex;
justify-content: flex-end;
justify-content: center;
text-align: center!important;
}
.mat-column-abstentions {
......
......@@ -37,7 +37,7 @@ export class ListStatisticComponent implements OnInit {
@Input() contentGroup: ContentGroup;
contents: Content[] = [];
displayedColumns = ['content', 'counts', 'abstentions', 'percentage'];
displayedColumns = ['content', 'counts', 'percentage'];
status = {
good: 85 ,
okay: 50 ,
......
......@@ -67,7 +67,7 @@
"statistic": {
"content": "Frage",
"learning-status": "Lernstand",
"total": "Total",
"answrs": "Antworten",
"percentage": "Prozent",
"abstentions": "Enthaltungen"
}
......
......@@ -32,7 +32,7 @@
"statistic": {
"content": "Frage",
"learning-status": "Lernstand",
"total": "Total",
"answers": "Antworten",
"percentage": "Prozent",
"abstentions": "Enthaltungen"
}
......
......@@ -32,7 +32,7 @@
"statistic": {
"content": "Content",
"learning-status": "Learning status",
"total": "Total",
"answrs": "Answers",
"percentage": "Percentage",
"abstentions": "Abstentions"
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment