fradrive/templates/correction-user.hamlet
2018-07-03 15:55:45 +02:00

40 lines
1.4 KiB
Plaintext

<div .scrolltable>
<table .table .table--striped .table--hover .table--vertical>
<tr .table__row>
<th .table__th> _{MsgSubmission}
<td .table__td> #{display cid}
$maybe Entity _ User{..} <- corrector
<tr .table__row>
<th .table__th> _{MsgRatingBy}
<td .table__td> #{display userDisplayName}
$maybe time <- submissionRatingTime
<tr .table__row>
<th .table__th> _{MsgRatingTime}
<td .table__td> #{display time}
$maybe points <- submissionRatingPoints
$case sheetType
$of Bonus{..}
<tr .table__row>
<th .table__th> _{MsgAchievedBonusPoints}
<td .table__td> _{MsgAchievedOf points maxPoints}
$of Normal{..}
<tr .table__row>
<th .table__th> _{MsgAchievedNormalPoints}
<td .table__td> _{MsgAchievedOf points maxPoints}
$of Pass{..}
<tr .table__row>
<th .table__th> _{MsgPassedResult}
<td .table__td>
$if points >= passingPoints
_{MsgPassed}
$else
_{MsgNotPassed}
<tr .table__row>
<th .table__th> _{MsgAchievedPassPoints}
<td .table__td> _{MsgPassAchievedOf points passingPoints maxPoints}
$of NotGraded
$maybe comment <- ratingComment
<tr .table__row>
<th .table__th> _{MsgRatingComment}
<td .table__td style="white-space: pre;"> #{comment}