minor
This commit is contained in:
parent
ee8990f244
commit
b3bfffe1c6
@ -76,12 +76,13 @@ sheetCell (crse, E.Value shn) =
|
|||||||
link= CSheetR tid ssh csh shn SShowR
|
link= CSheetR tid ssh csh shn SShowR
|
||||||
in anchorCell link $ display2widget shn
|
in anchorCell link $ display2widget shn
|
||||||
|
|
||||||
submissionCell :: IsDBTable m a => (CourseLink', E.Value SheetName, SubmissionId) -> DBCell m a
|
submissionCell :: IsDBTable m a => (CourseLink', E.Value SheetName, Entity Submission) -> DBCell m a
|
||||||
submissionCell (crse, E.Value shn, sid) =
|
submissionCell (crse, E.Value shn, submission) =
|
||||||
let tid = crse ^. _1 . _unValue
|
let tid = crse ^. _1 . _unValue
|
||||||
ssh = crse ^. _2 . _unValue
|
ssh = crse ^. _2 . _unValue
|
||||||
csh = crse ^. _4 . _unValue
|
csh = crse ^. _4 . _unValue
|
||||||
mkCid = encrypt (sid :: SubmissionId) -- TODO: executed twice -- FIXED!
|
sid = entityKey submission
|
||||||
|
mkCid = encrypt (sid :: SubmissionId) -- TODO: executed twice -- FIXED here, but not everywhere!
|
||||||
mkRoute cid = CSubmissionR tid ssh csh shn cid SubShowR
|
mkRoute cid = CSubmissionR tid ssh csh shn cid SubShowR
|
||||||
mkText cid = display2widget cid
|
mkText cid = display2widget cid
|
||||||
in anchorCellM' mkCid mkRoute mkText
|
in anchorCellM' mkCid mkRoute mkText
|
||||||
|
|||||||
Reference in New Issue
Block a user