fradrive/templates/table/cell/allocation-courses.hamlet
Gregor Kleen d5b65a1b06 feat(course-participants): introduce CourseParticipantState
BREAKING CHANGE: CourseParticipantState

Addresses #499
Fixes #371
2020-05-04 14:52:45 +02:00

12 lines
398 B
Plaintext

$newline never
<ul>
$forall (Entity _ Course{courseTerm, courseSchool, courseName}, E.Value mbRating, E.Value mbVeto, E.Value active) <- courses
<li :not active:.allocation-course--inactive>
#{courseTerm} - #{courseSchool} - #{courseName}
$case (mbRating, mbVeto)
$of (_, Just True)
, _{MsgApplicationVeto}
$of (Just g, _)
, _{g}
$of _