correctionsTable features links everywhere now
This commit is contained in:
parent
b2a97d926d
commit
4d3ad78b53
@ -65,13 +65,19 @@ colTerm = sortable (Just "term") (i18nCell MsgTerm)
|
||||
|
||||
colCourse :: Colonnade Sortable CorrectionTableData (Cell UniWorX)
|
||||
colCourse = sortable (Just "course") (i18nCell MsgCourse)
|
||||
$ \DBRow{ dbrOutput=(_, _, course) } ->
|
||||
textCell $ E.unValue $ course ^. _2
|
||||
$ \DBRow{ dbrOutput=(_, _, course) } -> cell $
|
||||
let tid = E.unValue $ course ^. _3
|
||||
csh = E.unValue $ course ^. _2
|
||||
in [whamlet|<a href=@{CourseR tid csh CShowR}>#{display csh}|]
|
||||
|
||||
colSheet :: Colonnade Sortable CorrectionTableData (Cell UniWorX)
|
||||
colSheet = sortable (Just "sheet") (i18nCell MsgSheet)
|
||||
$ \DBRow{ dbrOutput=(_, sheet, _) } ->
|
||||
textCell $ sheetName $ entityVal sheet
|
||||
$ \DBRow{ dbrOutput=(_, sheet, course) } -> cell $
|
||||
let tid = E.unValue $ course ^. _3
|
||||
csh = E.unValue $ course ^. _2
|
||||
shn = sheetName $ entityVal sheet
|
||||
in [whamlet|<a href=@{CSheetR tid csh shn SShowR}>#{display shn}|]
|
||||
-- textCell $ sheetName $ entityVal sheet
|
||||
|
||||
colCorrector :: Colonnade Sortable CorrectionTableData (Cell UniWorX)
|
||||
colCorrector = sortable (Just "corrector") (i18nCell MsgCorrector)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user