fix(allocations): show assignment green

This commit is contained in:
Gregor Kleen 2020-02-28 08:53:20 +01:00
parent 50442a02d1
commit 9d62b3a79e

View File

@ -153,7 +153,7 @@ postAUsersR tid ssh ash = do
assignedHeated' res
= let maxAssign = min (res ^. resultAllocationUser . _entityVal . _allocationUserTotalCourses . to fromIntegral)
(res ^. resultAppliedCourses)
assigned = res ^. resultAssignedCourses
assigned = maxAssign - res ^. resultAssignedCourses
in cellAttrs <>~ [ ("class", "heated")
, ("style", [st|--hotness: #{tshow (heat maxAssign assigned)}|])
]