Statistik für Übungsblätter
This commit is contained in:
parent
85b57654a5
commit
800f06e0ee
23
templates/widgets/sheetTypeSummary.hamlet
Normal file
23
templates/widgets/sheetTypeSummary.hamlet
Normal file
@ -0,0 +1,23 @@
|
||||
<div>
|
||||
$if 0 < sumNormalPoints sheetTypeSummary
|
||||
Gesamtpunktzahl #{display (sumNormalPoints sheetTypeSummary)}
|
||||
$maybe nPts <- (maybeAdd (achievedNormal sheetTypeSummary) (achievedBonus sheetTypeSummary))
|
||||
\ davon #{display nPts} erreicht
|
||||
$maybe bPts <- achievedBonus sheetTypeSummary
|
||||
\ (inklusive #{display bPts} #
|
||||
$if 0 < sumBonusPoints sheetTypeSummary
|
||||
von #{display $ sumBonusPoints sheetTypeSummary} erreichbaren #
|
||||
Bonuspunkten)
|
||||
\ #{textPercent $ realToFrac $ nPts / (sumNormalPoints sheetTypeSummary)}
|
||||
|
||||
|
||||
<div>
|
||||
$if 0 < numPassSheets sheetTypeSummary
|
||||
Blätter zum Bestehen: #{display (numPassSheets sheetTypeSummary)}
|
||||
$maybe passed <- achievedPasses sheetTypeSummary
|
||||
\ davon #{display (achievedPasses sheetTypeSummary)} bestanden.
|
||||
|
||||
<div>
|
||||
$if 0 < numNotGraded sheetTypeSummary
|
||||
Unbewertet: #{display (numNotGraded sheetTypeSummary)} Blätter
|
||||
|
||||
Loading…
Reference in New Issue
Block a user