chore: use css for strikethrough decoration

This commit is contained in:
Wolfgang Witt 2021-03-19 17:23:36 +01:00 committed by Gregor Kleen
parent ea32fdfa91
commit 22cc5f13a6
2 changed files with 18 additions and 46 deletions

View File

@ -971,7 +971,7 @@ th, td
right: 5px right: 5px
top: 5px top: 5px
.occurrence--not-registered, .no-bonus, .allocation-course--excluded, .allocation-course--inactive .occurrence--not-registered, .no-bonus, .allocation-course--excluded, .allocation-course--inactive, .occurrence--ignored
text-decoration: line-through text-decoration: line-through
.result .result

View File

@ -27,53 +27,25 @@ $newline never
<tbody> <tbody>
$forall Entity occId ExamOccurrence{ examOccurrenceName, examOccurrenceRoom, examOccurrenceStart, examOccurrenceEnd, examOccurrenceDescription, examOccurrenceCapacity } <- occurrences $forall Entity occId ExamOccurrence{ examOccurrenceName, examOccurrenceRoom, examOccurrenceStart, examOccurrenceEnd, examOccurrenceDescription, examOccurrenceCapacity } <- occurrences
<tr .table__row> <tr .table__row>
<td .table__td> <td .table__td :isIgnored occId:.occurrence--ignored>
$if isIgnored occId _{examOccurrenceName}
<s> <td .table__td :isIgnored occId:.occurrence--ignored>
_{examOccurrenceName} _{loadProp (occLoad occId) examOccurrenceCapacity}
$else <td .table__td :isIgnored occId:.occurrence--ignored>
_{examOccurrenceName}
<td .table__td>
$if isIgnored occId
<s>
_{loadProp (occLoad occId) examOccurrenceCapacity}
$else
_{loadProp (occLoad occId) examOccurrenceCapacity}
<td .table__td>
$maybe nudgeWgt' <- Map.lookup occId nudgeWgt $maybe nudgeWgt' <- Map.lookup occId nudgeWgt
^{nudgeWgt'} ^{nudgeWgt'}
$maybe ignoreRoomWgt' <- Map.lookup occId ignoreRoomWgt $maybe ignoreRoomWgt' <- Map.lookup occId ignoreRoomWgt
^{ignoreRoomWgt'} ^{ignoreRoomWgt'}
<td .table__td> <td .table__td :isIgnored occId:.occurrence--ignored>
$if isIgnored occId $maybe mappingWgt <- occMapping occId
<s> ^{mappingWgt}
$maybe mappingWgt <- occMapping occId <td .table__td :isIgnored occId:.occurrence--ignored>
^{mappingWgt} $maybe room <- examOccurrenceRoom
$else ^{roomReferenceWidget room}
$maybe mappingWgt <- occMapping occId $nothing
^{mappingWgt} _{MsgExamOccurrenceRoomIsUnset}
<td .table__td> <td .table__td :isIgnored occId:.occurrence--ignored>
$if isIgnored occId ^{formatTimeRangeW SelFormatDateTime examOccurrenceStart examOccurrenceEnd}
<s> <td .table__td :isIgnored occId:.occurrence--ignored>
$maybe room <- examOccurrenceRoom
^{roomReferenceWidget room}
$nothing
_{MsgExamOccurrenceRoomIsUnset}
$else
$maybe room <- examOccurrenceRoom
^{roomReferenceWidget room}
$nothing
_{MsgExamOccurrenceRoomIsUnset}
<td .table__td>
$if isIgnored occId
<s>
^{formatTimeRangeW SelFormatDateTime examOccurrenceStart examOccurrenceEnd}
$else
^{formatTimeRangeW SelFormatDateTime examOccurrenceStart examOccurrenceEnd}
<td .table__td>
$maybe desc <- examOccurrenceDescription $maybe desc <- examOccurrenceDescription
$if isIgnored occId #{desc}
<s>
#{desc}
$else
#{desc}