fix(allocations): show assignment green
This commit is contained in:
parent
50442a02d1
commit
9d62b3a79e
@ -153,7 +153,7 @@ postAUsersR tid ssh ash = do
|
|||||||
assignedHeated' res
|
assignedHeated' res
|
||||||
= let maxAssign = min (res ^. resultAllocationUser . _entityVal . _allocationUserTotalCourses . to fromIntegral)
|
= let maxAssign = min (res ^. resultAllocationUser . _entityVal . _allocationUserTotalCourses . to fromIntegral)
|
||||||
(res ^. resultAppliedCourses)
|
(res ^. resultAppliedCourses)
|
||||||
assigned = res ^. resultAssignedCourses
|
assigned = maxAssign - res ^. resultAssignedCourses
|
||||||
in cellAttrs <>~ [ ("class", "heated")
|
in cellAttrs <>~ [ ("class", "heated")
|
||||||
, ("style", [st|--hotness: #{tshow (heat maxAssign assigned)}|])
|
, ("style", [st|--hotness: #{tshow (heat maxAssign assigned)}|])
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user