$newline never $# SPDX-FileCopyrightText: 2022 Sarah Vaupel ,Winnie Ros $# $# SPDX-License-Identifier: AGPL-3.0-or-later $# Display a table showing the result of the corrector assignment for possibly several sheets $# Expected variables" $# sids :: list of SheetId $# openSubs :: Map from SheetId to SubAssignInfo, a datatype collecting info about open submissions $# assignmentStatus :: Map from SheetId to (Set SubmissionId, Set SubmisionId), i.e. assigned submissions and unassigned submissions for that sheet $if null sids

_{MsgSheetNoOldUnassigned} $else

_{MsgTableSheet} _{MsgNrSubmissionsTotal} _{MsgNrSubmissionsUnassigned} _{MsgNrCorrectors} $# Header-Styling indicates, whether assignment was attempted or not. $with hasAssignment <- not (Map.null assignmentStatus) _{MsgNrSubmissionsNewlyAssigned} _{MsgNrSubmissionsNotAssigned} $forall sid <- sids $case Map.lookup sid openSubs $of Nothing $of Just SubAssignInfo{saiName, saiSubmissionNr, saiUnassignedNr, saiCorrectorNr}
#{saiName} #{show saiSubmissionNr} #{show saiUnassignedNr} #{show saiCorrectorNr} $case Map.lookup sid assignmentStatus $of Nothing $of Just (assigned,unassigned) #{show (Set.size assigned)} #{show (Set.size unassigned)}