chore(profile): show examiners in profile data, towards #2347

This commit is contained in:
Steffen Jost 2025-02-24 17:10:54 +01:00
parent bc63324ddf
commit 088587549d

View File

@ -401,17 +401,15 @@ examOccurrenceCell Entity{entityVal = ExamOccurrence{..}} =
examCell :: IsDBTable m a => Course -> Exam -> DBCell m a 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 where
link = CExamR courseTerm courseSchool courseShorthand examName EShowR link = CExamR courseTerm courseSchool courseShorthand examName EShowR
name = citext2widget examName name = citext2widget examName
desc = case examDescription of
Nothing -> mempty examOccurrenceCell :: IsDBTable m a => Entity ExamOccurrence -> DBCell m a
(Just descr) -> cell [whamlet| examOccurrenceCell Entity{entityVal = ExamOccurrence{..}} =
$newline never wgtCell [whamlet|#{examOccurrenceName}:^{formatTimeRangeW SelFormatDateTime examOccurrenceStart examOccurrenceEnd}|]
<div>
^{modal "Beschreibung" (Right $ toWidget descr)}
|]
-- also see Handler.Utils.Widgets.companyWidget -- also see Handler.Utils.Widgets.companyWidget
companyCell :: IsDBTable m a => CompanyShorthand -> CompanyName -> Bool -> DBCell m a companyCell :: IsDBTable m a => CompanyShorthand -> CompanyName -> Bool -> DBCell m a