Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Merge requests
!185
Fix statistics list
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Fix statistics list
207-statistics-doesn-t-work
into
master
Overview
6
Commits
2
Pipelines
2
Changes
8
All threads resolved!
Hide all comments
Merged
Lukas Mauß
requested to merge
207-statistics-doesn-t-work
into
master
5 years ago
Overview
6
Commits
2
Pipelines
2
Changes
8
All threads resolved!
Hide all comments
Expand
Closes
#207 (closed)
Edited
5 years ago
by
Lukas Mauß
0
0
Merge request reports
Compare
master
version 1
6ec35cf1
5 years ago
master (base)
and
latest version
latest version
12e58382
2 commits,
5 years ago
version 1
6ec35cf1
1 commit,
5 years ago
8 files
+
31
−
18
Expand all files
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
8
Search (e.g. *.vue) (Ctrl+P)
src/app/components/shared/list-statistic/list-statistic.component.html
+
8
−
8
Options
<mat-toolbar></mat-toolbar>
<mat-progress-bar
class=
"progress-theme"
mode=
"determinate"
value=
"{{total}}"
*ngIf=
"total > status.good"
color=
"primary"
></mat-progress-bar>
*ngIf=
"total >
=
status.good"
color=
"primary"
></mat-progress-bar>
<mat-progress-bar
class=
"progress-theme"
mode=
"determinate"
value=
"{{total}}"
*ngIf=
"total < status.good && total >= status.okay"
color=
"accent"
></mat-progress-bar>
<mat-progress-bar
class=
"progress-theme"
mode=
"determinate"
value=
"{{total}}"
@@ -23,25 +23,25 @@
'positive' : cp.percent >= status.good,
'okay' : cp.percent >= status.okay && cp.percent < status.good,
'negative' : cp.percent < status.okay,
'empty' : cp.percent < status.zero }"
(click)=
"goToStats(cp.contentId)"
>
{{cp.percent.toFixed() + ' %'}}
</mat-cell>
'empty
invisible
' : cp.percent < status.zero }"
(click)=
"goToStats(cp.contentId)"
>
{{cp.percent.toFixed() + ' %'}}
</mat-cell>
</ng-container>
<ng-container
matColumnDef=
"
count
s"
>
<mat-header-cell
*matHeaderCellDef
>
{{'statistic.a
nswer
s' | translate}}
</mat-header-cell>
<ng-container
matColumnDef=
"
abstention
s"
>
<mat-header-cell
*matHeaderCellDef
>
{{'statistic.a
bstention
s' | translate}}
</mat-header-cell>
<mat-cell
*matCellDef=
"let cp"
[ngClass]=
"{
'positive' : cp.percent >= status.good,
'okay' : cp.percent >= status.okay && cp.percent < status.good,
'negative' : cp.percent < status.okay,
'empty' : cp.percent < status.zero }"
(click)=
"goToStats(cp.contentId)"
>
{{cp.
count
s}}
</mat-cell>
'empty
invisible
' : cp.percent < status.zero }"
(click)=
"goToStats(cp.contentId)"
>
{{cp.
abstention
s}}
</mat-cell>
</ng-container>
<ng-container
matColumnDef=
"
abstention
s"
>
<mat-header-cell
*matHeaderCellDef
>
{{'statistic.a
bstention
s' | translate}}
</mat-header-cell>
<ng-container
matColumnDef=
"
count
s"
>
<mat-header-cell
*matHeaderCellDef
>
{{'statistic.a
nswer
s' | translate}}
</mat-header-cell>
<mat-cell
*matCellDef=
"let cp"
[ngClass]=
"{
'positive' : cp.percent >= status.good,
'okay' : cp.percent >= status.okay && cp.percent < status.good,
'negative' : cp.percent < status.okay,
'empty' : cp.percent < status.zero }"
(click)=
"goToStats(cp.contentId)"
>
{{cp.
abstention
s}}
</mat-cell>
'empty
invisible
' : cp.percent < status.zero }"
(click)=
"goToStats(cp.contentId)"
>
{{cp.
count
s}}
</mat-cell>
</ng-container>
<mat-header-row
*matHeaderRowDef=
"displayedColumns"
></mat-header-row>