fradrive/templates/table/cell/allocation-courses.hamlet
2022-10-12 09:35:16 +02:00

17 lines
562 B
Plaintext

$newline never
$# SPDX-FileCopyrightText: 2022 Gregor Kleen <gregor.kleen@ifi.lmu.de>,Sarah Vaupel <vaupel.sarah@campus.lmu.de>
$#
$# SPDX-License-Identifier: AGPL-3.0-or-later
<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 _