chore(profile): show examiners in profile data, towards #2347
This commit is contained in:
parent
bc63324ddf
commit
088587549d
@ -401,17 +401,15 @@ examOccurrenceCell Entity{entityVal = ExamOccurrence{..}} =
|
||||
|
||||
|
||||
examCell :: IsDBTable m a => Course -> Exam -> DBCell m a
|
||||
examCell Course{..} Exam{..} = anchorCell link name `mappend` desc
|
||||
examCell Course{..} Exam{..} = anchorCell link name <> addModalDescriptionCell examDescription
|
||||
where
|
||||
link = CExamR courseTerm courseSchool courseShorthand examName EShowR
|
||||
name = citext2widget examName
|
||||
desc = case examDescription of
|
||||
Nothing -> mempty
|
||||
(Just descr) -> cell [whamlet|
|
||||
$newline never
|
||||
<div>
|
||||
^{modal "Beschreibung" (Right $ toWidget descr)}
|
||||
|]
|
||||
|
||||
examOccurrenceCell :: IsDBTable m a => Entity ExamOccurrence -> DBCell m a
|
||||
examOccurrenceCell Entity{entityVal = ExamOccurrence{..}} =
|
||||
wgtCell [whamlet|#{examOccurrenceName}:^{formatTimeRangeW SelFormatDateTime examOccurrenceStart examOccurrenceEnd}|]
|
||||
|
||||
|
||||
-- also see Handler.Utils.Widgets.companyWidget
|
||||
companyCell :: IsDBTable m a => CompanyShorthand -> CompanyName -> Bool -> DBCell m a
|
||||
|
||||
Loading…
Reference in New Issue
Block a user